Skip to content

Commit

Permalink
Remove vestigial extra 'stat' call in SFTPClient.get()
Browse files Browse the repository at this point in the history
Was apparently not removed when getfo() was born.
  • Loading branch information
bitprophet committed Nov 4, 2015
1 parent ecf3a82 commit 5b077c2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion paramiko/sftp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,6 @@ def get(self, remotepath, localpath, callback=None):
.. 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)
Expand Down

0 comments on commit 5b077c2

Please sign in to comment.