Hacked By AnonymousFox
�
�܋f � �* � d dl Z G d� de� � ZdS )� Nc �� � e Zd ZdZ ej dej ej z � � Z ej dej ej z � � Z d� Z
ed� � � Zed� � � Z
ed� � � Zed� � � Zd S )
� 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.c � � || _ d| _ d| _ d| _ | j � |� � }|r!d| _ |� d� � | _ | j � |� � }|rY|� d� � rd| _ n |� d� � dk rd| _ |� d� � | _ dS 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 s �^/builddir/build/BUILD/cloudlinux-venv-1.0.6/venv/lib/python3.11/site-packages/tap/directive.py�__init__zDirective.__init__ s� � �
��
���
���
�����!�'�'��-�-��� 1��D�J� �;�;�x�0�0�D�L��!�'�'��-�-��� 1��{�{�<�(�(�
&�!��
�
� �;�;�x�(�(�B�.�.�!%�D�J� �;�;�x�0�0�D�L�L�L� 1� 1� c � � | j S )zGet the entire text.)r �r s r r zDirective.text- � � � �z�r c � � | j S )z&Check if the directive is a SKIP type.)r
r s r �skipzDirective.skip2 r r c � � | j S )z&Check if the directive is a TODO type.)r r s r �todozDirective.todo7 r r c � � | j S )z!Get the reason for the directive.)r r s r r zDirective.reason<