def purge_expired (aging_hash, interval=aging_hash_interval):
    """Remove everything in the given hash if it has exceeded the given time interval"""

    expired = []
    for k, v in aging_hash.items():
        set_time = v[0]
        if aging_hash_interval > (time.time() - set_time):
            expired.append(k)
    for ex_k in expired:
        del aging_hash[ex_k]
dataset/ETHPy150Open dpapathanasiou/intelligent-smtp-responder/server/anti_spam.py/purge_expired/swapped operands of `>`