From 055c4a0fe1b1da29c76a04917c9df54f503755e8 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 7 Mar 2014 12:36:25 -0800 Subject: [PATCH] One spot newer than scott's changes which prob needed a py3-ism --- paramiko/sftp_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paramiko/sftp_file.py b/paramiko/sftp_file.py index 5d75bf5..8c4decd 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])