Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.11/lib2to3/tests/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.11/lib2to3/tests/__pycache__/pytree_idempotency.cpython-311.opt-1.pyc

�

SԚg�	���dZddlmZdZddlmZddlZddlZddlZddlm	Z	dd	lm
Z
dd
l
mZej��d�Z
d�Zed
kre
��dSdS)z,Main program for testing the infrastructure.�)�print_functionz#Guido van Rossum <guido@python.org>�)�supportN�)�pytree)�pgen2)�driverc�>�tjd��}tj|tj���}d}|�|d���}t
||��std��tj	dd�sdSg}tj
D]�}tj
|}|�t|d��s�'|j}|�
d	��r
|dd
�}|�
d��s�ctd|tj�
��|�|d���}t
||��r|�|����tjD�]}	t#j|��}n#t&$rY�%wxYwtd|dtj�
��|D]�}|�
d��s�td|tj�
��t"j�||��}	|�|d���}t
||��r|�|����#t*jj$r}	td|	��Yd}	~	��d}	~	wwxYw��
|std��dStd��|D]}td|���dS)NzGrammar.txt)�convertz
example.pyT)�debugz	No diffs.r�__file__z.pyc���z.py�Parsing)�file�Scanningz...zParseError:zNo problems.  Congratulations!zProblems in following files:z***)r	�load_grammar�Driverrr�
parse_file�diff�print�sys�argv�modules�hasattrr
�endswith�stderr�append�path�os�listdir�OSError�joinr�parse�
ParseError)
�gr�dr�fn�tree�problems�name�mod�dir�names�errs
          �=/usr/local/lib/python3.11/lib2to3/tests/pytree_idempotency.py�mainr0s���	�	�]�	+�	+�B�	��r�6�>�	2�	2�	2�B�	�B�
�=�=��4�=�(�(�D���D�>�>��
�k�����8�A�B�B�<�����H��� � ���k�$����;�g�c�:�6�6�;��
�\��
�;�;�v���	��C�R�C��B��{�{�5�!�!�	��
�i��#�*�-�-�-�-��}�}�R�t�}�,�,����D�>�>�	 ��O�O�B������x�(�(��	��J�s�O�O�E�E���	�	�	��H�	����
�j�#�u�3�:�6�6�6�6��	(�	(�D��=�=��'�'�
���)�T��
�3�3�3�3�����c�4�(�(�B�
(��}�}�R�t�}�4�4����D�>�>�(��O�O�B�'�'�'���	�;�)�
*�
*�
*��m�S�)�)�)�)�)�)�)�)�����
*����	(���
�.�/�/�/�/�/�
�,�-�-�-��	�	�B��%������	�	s*�E2�2
E?�>E?�6H3�3I!�I�I!c�N�tdd��}	|�t|����|���n#|���wxYw	t	jd|z��t	jd��S#t	jd��wxYw)N�@�wzdiff -u %s @)�open�write�str�closer�system�remove)r'r(�fs   r/rrRs����S�#���A��	����D�	�	����	���	�	�	�	�����	�	�	�	������y��"�,�-�-�
�	�#�������	�#�������s�"A	�	A�#B�B$�__main__)�__doc__�
__future__r�
__author__�rrr�loggingrrr	�basicConfigr0r�__name__��r/�<module>rEs���
3�2�%�%�%�%�%�%�
2�
�������
�	�	�	�
�
�
�
�����������������������������6�6�6�p	�	�	��z����D�F�F�F�F�F��rD

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists