git://git.onelab.eu
/
sfa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2to3 -f has_key
[sfa.git]
/
sfa
/
util
/
callids.py
diff --git
a/sfa/util/callids.py
b/sfa/util/callids.py
index
ead60bb
..
6748546
100644
(file)
--- a/
sfa/util/callids.py
+++ b/
sfa/util/callids.py
@@
-44,7
+44,7
@@
class _call_ids_impl (dict):
logger.warning("_call_ids_impl.should_handle_call_id: could not acquire lock")
return False
# we're good to go
- if
self.has_key(call_id)
:
+ if
call_id in self
:
self._purge()
self._lock.release()
return True