Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraleherbau2011-06-03 07:46:54 -0400
committeraleherbau2011-06-03 07:46:54 -0400
commitfae8eeff08bde9128e4e3379db67a34e3c9dbfc8 (patch)
tree428084ecce1957f225d08513fde66762c35ee914 /python/src/tcf/util/sync.py
parent8d4001044fedfebd3b27a84c2081a7979f7ba726 (diff)
downloadorg.eclipse.tcf-fae8eeff08bde9128e4e3379db67a34e3c9dbfc8.tar.gz
org.eclipse.tcf-fae8eeff08bde9128e4e3379db67a34e3c9dbfc8.tar.xz
org.eclipse.tcf-fae8eeff08bde9128e4e3379db67a34e3c9dbfc8.zip
TCF Python: Replace has_key with 3.x compatible 'in'
Diffstat (limited to 'python/src/tcf/util/sync.py')
-rw-r--r--python/src/tcf/util/sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/src/tcf/util/sync.py b/python/src/tcf/util/sync.py
index 2aad54532..d85434876 100644
--- a/python/src/tcf/util/sync.py
+++ b/python/src/tcf/util/sync.py
@@ -164,13 +164,13 @@ class CommandControl(object):
def _waitForCommand(self, token, timeout=None):
assert not protocol.isDispatchThread()
with self._lock:
- while self._pending.has_key(token.id):
+ while token.id in self._pending:
self._lock.wait(timeout)
if timeout: break
else:
if self._queue:
self._lock.wait(timeout)
- while self._pending.has_key(token.id):
+ while token.id in self._pending:
self._lock.wait(timeout)
if timeout: break
def cancel(self):

Back to the top