summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 a77bc926..b3c1d648 100644
--- a/paramiko/sftp_file.py
+++ b/paramiko/sftp_file.py
@@ -478,7 +478,7 @@ class SFTPFile (BufferedFile):
while True:
with self._prefetch_lock:
# spin if in race with _prefetch_thread
- if self._prefetch_extents.has_key(num):
+ if num in self._prefetch_extents:
offset, length = self._prefetch_extents[num]
self._prefetch_data[offset] = data
del self._prefetch_extents[num]