diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2014-08-25 22:25:40 -0700 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2014-08-25 22:25:40 -0700 |
commit | ab8ea174501023fda3686d836057a6f8b475ab61 (patch) | |
tree | 3a91f12c996eaf4b6f6380ac00d340af6e6be09c | |
parent | d05ca17db876055a5f584e720b1b0733116b4365 (diff) |
Minor refactor, re #169
-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 1caaf165..cbef8f71 100644 --- a/paramiko/sftp_client.py +++ b/paramiko/sftp_client.py @@ -584,7 +584,7 @@ class SFTPClient(BaseSFTP): """ file_size = os.stat(localpath).st_size with open(localpath, 'rb') as fl: - return self.putfo(fl, remotepath, os.stat(localpath).st_size, callback, confirm) + return self.putfo(fl, remotepath, file_size, callback, confirm) def getfo(self, remotepath, fl, callback=None): """ |