Your IP : 216.73.216.196


Current Path : /opt/alt/python37/lib/python3.7/site-packages/tap/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib/python3.7/site-packages/tap/__pycache__/directive.cpython-37.opt-1.pyc

B

.��V�@sddlZGdd�de�ZdS)�Nc@speZdZdZe�dejejB�Ze�dejejB�Z	dd�Z
edd��Zedd	��Z
ed
d��Zedd
��ZdS)�	Directivez,A representation of a result line directive.zt^SKIP\S*
            (?P<whitespace>\s*) # Optional whitespace.
            (?P<reason>.*)      # Slurp up the rest.z�^TODO\b             # The directive name
            (?P<whitespace>\s*) # Immediately following must be whitespace.
            (?P<reason>.*)      # Slurp up the rest.cCs�||_d|_d|_d|_|j�|�}|r:d|_|�d�|_|j�|�}|r||�d�r\d|_n|�d�dkrpd|_|�d�|_dS)z�Initialize the directive by parsing the text.

        The text is assumed to be everything after a '#\s*' on a result line.
        FNT�reason�
whitespace�)�_text�_skip�_todo�_reason�skip_pattern�match�group�todo_pattern)�self�textr�r�>/opt/alt/python37/lib/python3.7/site-packages/tap/directive.py�__init__s
zDirective.__init__cCs|jS)zGet the entire text.)r)rrrrr-szDirective.textcCs|jS)z&Check if the directive is a SKIP type.)r)rrrr�skip2szDirective.skipcCs|jS)z&Check if the directive is a TODO type.)r)rrrr�todo7szDirective.todocCs|jS)z!Get the reason for the directive.)r	)rrrrr<szDirective.reasonN)�__name__�
__module__�__qualname__�__doc__�re�compile�
IGNORECASE�VERBOSEr
r
r�propertyrrrrrrrrrsr)r�objectrrrrr�<module>s