From e6791c17a5e9ea00f292c2e2eb43488e9303efe1 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Mon, 12 Mar 2018 17:46:32 -0700 Subject: flake8 --- paramiko/transport.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paramiko/transport.py b/paramiko/transport.py index 3ec3f0b2..a71c6bab 100644 --- a/paramiko/transport.py +++ b/paramiko/transport.py @@ -1771,9 +1771,9 @@ class Transport(threading.Thread, ClosingContextManager): Otherwise (client mode, authed, or pre-auth message) returns None. """ if ( - not self.server_mode - or ptype <= HIGHEST_USERAUTH_MESSAGE_ID - or self.is_authenticated() + not self.server_mode or + ptype <= HIGHEST_USERAUTH_MESSAGE_ID or + self.is_authenticated() ): return None # WELP. We must be dealing with someone trying to do non-auth things @@ -1784,7 +1784,7 @@ class Transport(threading.Thread, ClosingContextManager): reply.add_byte(cMSG_REQUEST_FAILURE) # Channel opens let us reject w/ a specific type + message. elif ptype == MSG_CHANNEL_OPEN: - kind = message.get_text() + kind = message.get_text() # noqa chanid = message.get_int() reply.add_byte(cMSG_CHANNEL_OPEN_FAILURE) reply.add_int(chanid) -- cgit v1.2.3