def load_wordlist(name: str) -> Iterator[str]:
data = pkgutil.get_data('<STR_LIT>', '<STR_LIT>' + name)<EOL>if data is not None:<EOL><INDENT>text = data.decode('<STR_LIT:utf8>')<EOL>for line in text.splitlines():<EOL><INDENT>line = COMMENT_RE.sub('<STR_LIT>', line).strip()<EOL>if line:<EOL><INDENT>yield line<EOL><DEDENT><DEDENT><DEDENT>
Iterate over lines of a wordlist data file.

    `name` should be the name of a package data file within the data/
    directory.

    Whitespace and #-prefixed comments are stripped from each line.