lib/gettor/utils.py
def clearBlacklist(conf, olderThanDays):
    """Delete all entries in the global blacklist that are older than
       'olderThanDays' days
    """
    logging.debug("Clearing blacklist..")
    blStateDir = conf.BASEDIR + "/bl"
    try:
        blackList = gettor.blacklist.BWList(blStateDir)
    except IOError, e:
        logging.error("Blacklist error: %s" % e)
        return False
    if not blackList.removeAll(olderThanDays):
        logging.error("Deleting blacklist failed.")
        return False
    else:
        logging.debug("Deleting blacklist done.")
        return True
Delete all entries in the global blacklist that are older than
       'olderThanDays' days
    
Delete all entries in the global blacklist that are older than
'olderThanDays' days
Delete all entries in the global blacklist that are older than ' olderThanDays ' days
def clearBlacklist(conf, olderThanDays):
    logging.debug("Clearing blacklist..")
    blStateDir = conf.BASEDIR + "/bl"
    try:
        blackList = gettor.blacklist.BWList(blStateDir)
    except IOError, e:
        logging.error("Blacklist error: %s" % e)
        return False
    if not blackList.removeAll(olderThanDays):
        logging.error("Deleting blacklist failed.")
        return False
    else:
        logging.debug("Deleting blacklist done.")
        return True
def clearBlacklist ( conf , olderThanDays ) : logging . debug ( "Clearing blacklist.." ) blStateDir = conf . BASEDIR + "/bl" try : blackList = gettor . blacklist . BWList ( blStateDir ) except IOError , e : logging . error ( "Blacklist error: %s" % e ) return False if not blackList . removeAll ( olderThanDays ) : logging . error ( "Deleting blacklist failed." ) return False else : logging . debug ( "Deleting blacklist done." ) return True
Delete all entries in the global blacklist that are older than
'olderThanDays' days
Delete all entries in the global blacklist that are older than ' olderThanDays ' days
"""Delete all entries in the global blacklist that are older than
       'olderThanDays' days
    """
conf
olderThanDays