mirror of
https://github.com/romanz/amodem.git
synced 2026-03-24 11:22:00 +08:00
Don't inheric from 'object' (after deprecating Python 2.x support)
This commit is contained in:
@@ -18,7 +18,7 @@ def test_socket():
|
||||
assert not os.path.isfile(path)
|
||||
|
||||
|
||||
class FakeSocket(object):
|
||||
class FakeSocket:
|
||||
|
||||
def __init__(self, data=b''):
|
||||
self.rx = io.BytesIO(data)
|
||||
@@ -77,7 +77,7 @@ def test_server_thread():
|
||||
connections = [sock]
|
||||
quit_event = threading.Event()
|
||||
|
||||
class FakeServer(object):
|
||||
class FakeServer:
|
||||
def accept(self): # pylint: disable=no-self-use
|
||||
if not connections:
|
||||
raise socket.timeout()
|
||||
|
||||
Reference in New Issue
Block a user