- now=time.time()
- o_keys=[]
- for (k,v) in self.iteritems():
- if (now-v) >= _call_ids_impl.purge_timeout: o_keys.append(k)
- for k in o_keys:
- if debug: logger.debug("Purging call_id %r (%s)"%(k,time.strftime("%H:%M:%S",time.localtime(self[k]))))
+ now = time.time()
+ o_keys = []
+ for (k, v) in self.iteritems():
+ if (now - v) >= _call_ids_impl.purge_timeout:
+ o_keys.append(k)
+ for k in o_keys:
+ if debug:
+ logger.debug("Purging call_id %r (%s)" % (
+ k, time.strftime("%H:%M:%S", time.localtime(self[k]))))