Your IP : 216.73.216.196
B
� Y� � @ s\ d Z ddlZddlZddlZe�d�Ze�d�jZdd� Z dd� e d �D �Z
ee d
��ZdS )z�Wordlists loaded from package data.
We can treat them as part of the code for the imperative mood check, and
therefore we load them at import time, rather than on-demand.
� Nz\s*#.*�englishc c sF t �dd| ��d�}x*|�� D ]}t�d|��� }|r |V q W dS )z�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.
�
pydocstylezdata/�utf8� N)�pkgutil�get_data�decode�
splitlines�
COMMENT_RE�sub�strip)�name�text�line� r �E/opt/alt/python37/lib/python3.7/site-packages/pydocstyle/wordlists.py�
load_wordlist s
r c C s i | ]}|t |��qS r )�stem)�.0�vr r r �
<dictcomp>$ s r zimperatives.txtzimperatives_blacklist.txt)
�__doc__�rer �snowballstemmer�compiler
ZstemmerZstemWordr r ZIMPERATIVE_VERBS�setZIMPERATIVE_BLACKLISTr r r r �<module> s