diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2013-03-04 08:46:39 -0500 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2013-03-04 08:46:39 -0500 |
commit | 3cd7f585d01afe7eb97374e26a9f72197fc77a42 (patch) | |
tree | 207cfca1c96e64f8c41a2c40b69607e53d9c5bc6 | |
parent | a3fe422198b1faf75afaf8e2ccfc752dcba64c82 (diff) |
Remove 'file_size' check from tests. The docstring indicates this parameter is to be passed to the callback, and there's no reason to think this parameter is relevant in affecting whether a useful stat object has been passed (especially when the 'confirm' parameter is explicitly supplied for that decision. This fixes #142.
-rw-r--r-- | paramiko/sftp_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py index 7df643f5..17ea493c 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -575,7 +575,7 @@ class SFTPClient (BaseSFTP): break finally: fr.close() - if confirm and file_size: + if confirm: s = self.stat(remotepath) if s.st_size != size: raise IOError('size mismatch in put! %d != %d' % (s.st_size, size)) |