def _has_license(lines):
    return any([any([(p in l.decode('utf-8')) for p in _LICENSE_PATTERNS]) for l in lines])
def _has_license(lines):
    return any([any([(p in l.decode('utf-8')) for p in _LICENSE_PATTERNS]) for l in lines])