summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStephen C. Pope <stephen.pope@predict.com>2015-08-24 09:54:55 -0600
committerJeff Forcier <jeff@bitprophet.org>2016-04-24 21:45:37 -0700
commitd678211cf2b1076326fc42bf65f8476fb77df8ee (patch)
treef9a0cd0c2ae6161dc4ea9f83529747269a5dadf0
parent9e76f38045ef1e24eb2f6ff93d0b68470b237bad (diff)
don't use has_key()
-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]