We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f61ecb commit 751e7e0Copy full SHA for 751e7e0
maxminddb/file.py
@@ -21,7 +21,7 @@ def __getitem__(self, key):
21
if isinstance(key, slice):
22
return self._read(key.stop - key.start, key.start)
23
if isinstance(key, int):
24
- return self._read(1, key)
+ return self._read(1, key)[0]
25
raise TypeError("Invalid argument type.")
26
27
def rfind(self, needle, start):
0 commit comments