def METHOD_NAME(path: str) -> Iterator[str]:
    with open(path) as fd:
        for line in fd:
            line = line.strip()
            if not line or line.startswith('#'):
                continue
            url = line.split()[0]
            # KISS introduced substitution variables (see #1166) which
            # we won't support, detect these and refuse to parse.
            # Check for numerics additionally, as there may be verbatim
            # VERSION in the url which affects carbs.
            if 'VERSION' in url and not any(filter(str.isnumeric, url)):  # type: ignore
                raise RuntimeError(f'substitution detected in url: "{url}", refusing to continue')
            if '://' in url:
                yield url