Skip to content

Commit 045a622

Browse files
committed
Don't inherit from object
This is not required by Python 3.
1 parent a6696b0 commit 045a622

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[MESSAGES CONTROL]
2-
disable=C0330,R0201,R0205,W0105
2+
disable=C0330
33

44
[BASIC]
55

maxminddb/decoder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from maxminddb.errors import InvalidDatabaseError
1111

1212

13-
class Decoder(object): # pylint: disable=too-few-public-methods
13+
class Decoder: # pylint: disable=too-few-public-methods
1414
"""Decoder for the data section of the MaxMind DB"""
1515

1616
def __init__(self, database_buffer, pointer_base=0, pointer_test=False):
@@ -32,7 +32,7 @@ def _decode_array(self, size, offset):
3232
array.append(value)
3333
return array, offset
3434

35-
def _decode_boolean(self, size, offset):
35+
def _decode_boolean(self, size, offset): # pylint: disable=no-self-use
3636
return size != 0, offset
3737

3838
def _decode_bytes(self, size, offset):

maxminddb/file.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from threading import Lock # type: ignore
1010

1111

12-
class FileBuffer(object):
12+
class FileBuffer:
1313
"""A slice-able file reader"""
1414

1515
def __init__(self, database):

maxminddb/reader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
]
4242

4343

44-
class Reader(object):
44+
class Reader:
4545
"""
4646
Instances of this class provide a reader for the MaxMind DB format. IP
4747
addresses can be looked up using the ``get`` method.
@@ -265,7 +265,7 @@ def __enter__(self) -> Reader:
265265
return self
266266

267267

268-
class Metadata(object):
268+
class Metadata:
269269
"""Metadata for the MaxMind DB reader
270270
271271

0 commit comments

Comments
 (0)