diff options
author | Dorian Pula <dorian.pula@amber-penguin-software.ca> | 2017-05-30 13:38:40 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-05-31 17:14:40 -0700 |
commit | 7edff286649906a64af97c9a38cdcc9240c86527 (patch) | |
tree | dc2bb0d5c09d7513b535dbf07a40342715c7d7ba | |
parent | 7fb89cf56da37d906595bb6dd9c88250fcfc6b25 (diff) |
Fix failing tests and explain the unusual code.
-rw-r--r-- | paramiko/sftp_client.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index 245e5072..719757c5 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -799,7 +799,10 @@ class SFTPClient(BaseSFTP, ClosingContextManager): if t == CMD_STATUS: self._convert_status(msg) return t, msg - if fileobj is not None: + + # can not rewrite this to deal with E721, either as a None check + # nor as not an instance of None or NoneType + if fileobj is not type(None): # noqa fileobj._async_response(t, msg, num) if waitfor is None: # just doing a single check |