Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/test/test_lib2to3/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/test/test_lib2to3/__pycache__/pytree_idempotency.cpython-312.opt-1.pyc

�

)Μg�	���dZddlmZdZddlmZddlZddlZddlZddl	m
Z
ddl	mZdd	lm
Z
ej�d
�Zd�Zedk(re�yy)
z,Main program for testing the infrastructure.�)�print_functionz#Guido van Rossum <guido@python.org>�)�supportN)�pytree)�pgen2)�driverc���tjd�}tj|tj��}d}|j|d��}t
||�std�tjddsyg}tjD]�}tj|}|�t|d�s�%|j}|jd	�r|dd
}|jd�s�Ytd|tj�
�|j|d��}t
||�s��|j|���tj D]�}	t#j$|�}td|dtj�
�|D]�}|jd�s�td|tj�
�t"j j)||�}	|j|d��}t
||�s�r|j|�����|std�ytd�|D]}td|��y#t&$rY��wxYw#t*j,j.$r}	td|	�Yd}	~	��d}	~	wwxYw)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
          �A/usr/local/lib/python3.12/test/test_lib2to3/pytree_idempotency.py�mainr/s��	�	�	�]�	+�B�	���r�6�>�>�	2�B�	�B�
�=�=��4�=�(�D���D�>�
�k���8�8�A�B�<���H������k�k�$����;�g�c�:�6��
�\�\��
�;�;�v���C�R��B��{�{�5�!��
�i��#�*�*�-��}�}�R�t�}�,����D�>��O�O�B����x�x��	��J�J�s�O�E�	�j�#�u�3�:�:�6��D��=�=��'���)�T��
�
�3������c�4�(�B�
(��}�}�R�t�}�4����D�>��O�O�B�'��
�(�
�.�/�
�,�-��B��%�����+�	��	���;�;�)�)�
*��m�S�)�)��
*�s*�	H1�I�1	H=�<H=�I3�I.�.I3c�*�tdd�}	|jt|��|j�	t	j
d|z�t	jd�S#|j�wxYw#t	jd�wxYw)N�@�wzdiff -u %s @)�open�write�str�closer�system�remove)r&r'�fs   r.rrRsg���S�#��A��	����D�	��	���	���y�y��"�,�-�
�	�	�#���		
���	��	�	�	�#��s�A&�A;�&A8�;B�__main__)�__doc__�
__future__r�
__author__�rrr�logging�lib2to3rr�
lib2to3.pgen2r�basicConfigr/r�__name__��r.�<module>rFsZ��
3�%�
2�
��
�
���� ������6�p	��z���F�rE

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