summaryrefslogtreecommitdiff
path: root/paramiko/sftp_file.py
diff options
context:
space:
mode:
authorScott Maxwell <scott@codecobblers.com>2013-11-01 09:49:52 -0700
committerScott Maxwell <scott@codecobblers.com>2013-11-01 09:49:52 -0700
commit9662a7f779636f0328263a81cdeb76af25802970 (patch)
tree0d0caa288159db9439e22039b21127201fc09017 /paramiko/sftp_file.py
parent06b866cf406c035ecaffd7a8abd31d6e07b8811a (diff)
downloadparamiko-9662a7f779636f0328263a81cdeb76af25802970.tar.gz
Changes inspired by the nischu7 branch
Diffstat (limited to 'paramiko/sftp_file.py')
-rw-r--r--paramiko/sftp_file.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py
index 754d0384..480c3711 100644
--- a/paramiko/sftp_file.py
+++ b/paramiko/sftp_file.py
@@ -94,7 +94,7 @@ class SFTPFile (BufferedFile):
k = [i for i in self._prefetch_reads if i[0] <= offset]
if len(k) == 0:
return False
- k.sort(key=hash)
+ k.sort(key=lambda x: x[0])
buf_offset, buf_size = k[-1]
if buf_offset + buf_size <= offset:
# prefetch request ends before this one begins