mirror of
https://github.com/romanz/amodem.git
synced 2026-04-01 00:36:50 +08:00
Fixup pylint issues
This commit is contained in:
@@ -78,12 +78,12 @@ def test_server_thread():
|
||||
quit_event = threading.Event()
|
||||
|
||||
class FakeServer:
|
||||
def accept(self): # pylint: disable=no-self-use
|
||||
def accept(self):
|
||||
if not connections:
|
||||
raise socket.timeout()
|
||||
return connections.pop(), 'address'
|
||||
|
||||
def getsockname(self): # pylint: disable=no-self-use
|
||||
def getsockname(self):
|
||||
return 'fake_server'
|
||||
|
||||
def handle_conn(conn):
|
||||
|
||||
Reference in New Issue
Block a user