def parse_ini_file(f_loc):
    config = configparser.ConfigParser()
    try:
        config.read(f_loc)
        return {k: v for k, v in config.items('bandit')}

    except (configparser.Error, __HOLE__, TypeError):
        logger.warning("Unable to parse config file %s or missing [bandit] "
                       "section", f_loc)

    return None
dataset/ETHPy150Open openstack/bandit/bandit/core/utils.py/parse_ini_file