One spot newer than scott's changes which prob needed a py3-ism

This commit is contained in:
Jeff Forcier 2014-03-07 12:36:25 -08:00
parent 7688c7aaaf
commit 055c4a0fe1
1 changed files with 1 additions and 1 deletions

View File

@ -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])