def load_disabled_rules(src):
    """Load disabled rules from YAML file."""
    logger = logging.getLogger('retf')
    listing = []

    if src:
        try:
            listing = yaml.safe_load(open(src))
            for rule in listing:
                logger.debug("Rule '%s' is disabled.", rule)

        except __HOLE__:
            logger.error("loading disabled rules from file %s failed", src)

    return listing
dataset/ETHPy150Open openstack/openstack-doc-tools/cleanup/retf/retf.py/load_disabled_rules