def load_wordlist(name: str) -> Iterator[str]:
    """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.

    """
    data = pkgutil.get_data('pydocstyle', 'data/' + name)
    if data is not None:
        text = data.decode('utf8')
        for line in text.splitlines():
            line = COMMENT_RE.sub('', line).strip()
            if line:
                yield line
def load_wordlist ( name : str ) -> Iterator [ str ] : data = pkgutil . get_data ( 'pydocstyle' , 'data/' + name ) if data is not None : text = data . decode ( 'utf8' ) for line in text . splitlines ( ) : line = COMMENT_RE . sub ( '' , line ) . strip ( ) if line : yield line
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.