def yaml_loader(filename):
    import yaml
    try:
        from yaml import CLoader as Loader
    except __HOLE__:
        from yaml import Loader

    with open(filename) as fh:
        return yaml.load(fh, Loader=Loader) or {}
dataset/ETHPy150Open dnephin/PyStaticConfiguration/staticconf/loader.py/yaml_loader