Fixup pylint issues
This commit is contained in:
@@ -167,6 +167,6 @@ class Handler:
|
|||||||
return util.frame(code, data)
|
return util.frame(code, data)
|
||||||
|
|
||||||
|
|
||||||
def _unsupported_extension(buf):
|
def _unsupported_extension(buf): # pylint: disable=unused-argument
|
||||||
code = util.pack('B', msg_code('SSH_AGENT_EXTENSION_FAILURE'))
|
code = util.pack('B', msg_code('SSH_AGENT_EXTENSION_FAILURE'))
|
||||||
return util.frame(code)
|
return util.frame(code)
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ class MockDevice(device.interface.Device): # pylint: disable=abstract-method
|
|||||||
def package_name(cls):
|
def package_name(cls):
|
||||||
return 'fake-device-agent'
|
return 'fake-device-agent'
|
||||||
|
|
||||||
def connect(self): # pylint: disable=no-self-use
|
def connect(self):
|
||||||
return mock.Mock()
|
return mock.Mock()
|
||||||
|
|
||||||
def pubkey(self, identity, ecdh=False): # pylint: disable=unused-argument
|
def pubkey(self, identity, ecdh=False): # pylint: disable=unused-argument
|
||||||
|
|||||||
@@ -78,12 +78,12 @@ def test_server_thread():
|
|||||||
quit_event = threading.Event()
|
quit_event = threading.Event()
|
||||||
|
|
||||||
class FakeServer:
|
class FakeServer:
|
||||||
def accept(self): # pylint: disable=no-self-use
|
def accept(self):
|
||||||
if not connections:
|
if not connections:
|
||||||
raise socket.timeout()
|
raise socket.timeout()
|
||||||
return connections.pop(), 'address'
|
return connections.pop(), 'address'
|
||||||
|
|
||||||
def getsockname(self): # pylint: disable=no-self-use
|
def getsockname(self):
|
||||||
return 'fake_server'
|
return 'fake_server'
|
||||||
|
|
||||||
def handle_conn(conn):
|
def handle_conn(conn):
|
||||||
|
|||||||
Reference in New Issue
Block a user