summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2015-11-04 14:50:49 -0800
committerJeff Forcier <jeff@bitprophet.org>2015-11-04 14:50:49 -0800
commit5b077c2022f150a8143a306df0ae8dae6427a4a8 (patch)
tree1be7b4a08e5e142c7e0062b68661d62cecc3b603
parentecf3a820323d7821c30ef4b568cb885b381e368a (diff)
Remove vestigial extra 'stat' call in SFTPClient.get()
Was apparently not removed when getfo() was born.
-rw-r--r--paramiko/sftp_client.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/paramiko/sftp_client.py b/paramiko/sftp_client.py
index da6f6e87..57225558 100644
--- a/paramiko/sftp_client.py
+++ b/paramiko/sftp_client.py
@@ -717,7 +717,6 @@ class SFTPClient(BaseSFTP, ClosingContextManager):
.. versionchanged:: 1.7.4
Added the ``callback`` param
"""
- file_size = self.stat(remotepath).st_size
with open(localpath, 'wb') as fl:
size = self.getfo(remotepath, fl, callback)
s = os.stat(localpath)