def has_path_sep(name: str, sep: str = '/\\') -> bool:
    'Checks if any of the specified @sep path separators are in @name'
    for each in sep:
        if each in name:
            return True
    return False
Checks if any of the specified @sep path separators are in @name
mesonbuild/utils/universal.py