summaryrefslogtreecommitdiff
path: root/paramiko/sftp_file.py
diff options
context:
space:
mode:
authorJeff Forcier <jeff@bitprophet.org>2014-03-07 12:36:25 -0800
committerJeff Forcier <jeff@bitprophet.org>2014-03-07 12:36:25 -0800
commit055c4a0fe1b1da29c76a04917c9df54f503755e8 (patch)
treeb1bf44c5a88499005be7007e42b3d017e4c61e8e /paramiko/sftp_file.py
parent7688c7aaaf985f400aa7a726959ec56bc739bf25 (diff)
downloadparamiko-055c4a0fe1b1da29c76a04917c9df54f503755e8.tar.gz
One spot newer than scott's changes which prob needed a py3-ism
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 5d75bf59..8c4decd8 100644
--- a/paramiko/sftp_file.py
+++ b/paramiko/sftp_file.py
@@ -97,7 +97,7 @@ class SFTPFile (BufferedFile):
pass
def _data_in_prefetch_requests(self, offset, size):
- k = [x for x in self._prefetch_extents.values() if x[0] <= offset]
+ k = [x for x in list(self._prefetch_extents.values()) if x[0] <= offset]
if len(k) == 0:
return False
k.sort(key=lambda x: x[0])