diff options
author | Martin Packman <gzlist@googlemail.com> | 2017-06-01 01:08:02 +0100 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2017-06-09 13:46:15 -0700 |
commit | 8c9df8ba637e222a3e9da6d365d225f9cad81f18 (patch) | |
tree | 6d191c77b561f78fb06aae9f909a50b5c67fe2ef /paramiko/sftp_client.py | |
parent | 17231b9a7c56bf06f1a848fc52554541a09a2eba (diff) | |
download | paramiko-8c9df8ba637e222a3e9da6d365d225f9cad81f18.tar.gz |
Tweak comments as suggested in review
Thanks to bitprophet and ploxiln.
Diffstat (limited to 'paramiko/sftp_client.py')
-rw-r--r-- | paramiko/sftp_client.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index ef04f37a..a1ee6723 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -761,6 +761,8 @@ class SFTPClient(BaseSFTP, ClosingContextManager): elif isinstance(item, SFTPAttributes): item._pack(msg) else: + # For all other types, rely on as_string() to either coerce + # to bytes before writing or raise a suitable exception. msg.add_string(item) num = self.request_number self._expecting[num] = fileobj |