def _regex_for_level(level, hint):
    return r".*LOG\.%(level)s\(\s*((%(wrong_hints)s)\(|'|\")" % {
        'level': level,
        'wrong_hints': '|'.join(_all_hints - set([hint])),
    }
dataset/ETHPy150Open openstack/neutron/neutron/hacking/checks.py/_regex_for_level/original