

def _purge(self):
    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])))))
        del self[k]
    if debug:
        logger.debug('AFTER PURGE')
        for (k, v) in self.iteritems():
            logger.debug(('%s -> %s' % (k, time.strftime('%H:%M:%S', time.localtime(v)))))

dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/sfa/util/callids.py _call_ids_impl._purge/original