From 3cd7f585d01afe7eb97374e26a9f72197fc77a42 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 4 Mar 2013 08:46:39 -0500 Subject: 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. --- paramiko/sftp_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3