def _get_requirements(path):
    try:
        with open(path) as f:
            packages = f.read().splitlines()
    except (IOError, __HOLE__) as ex:
        raise RuntimeError("Can't open file with requirements: %r", ex)
    packages = (p.strip() for p in packages if not re.match("^\s*#", p))
    packages = list(filter(None, packages))
    return packages
dataset/ETHPy150Open projectatomic/atomic-reactor/setup.py/_get_requirements