2to3 -f has_key
[sfa.git] / sfa / util / callids.py
index ead60bb..6748546 100644 (file)
@@ -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