Sindbad~EG File Manager
�
)Μg� ��� ddlmZdZddlmZddlZddlZddlZddlm Z ddlm
Z
ddlmZej�d �Zd
�Zedk(re�yy)�)�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|�����|std�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 jd�S#|j�wxYw#t jd�wxYw)N�@�wzdiff -u %s @)�open�write�str�closer�system�remove)r&r'�fs r.rrRsg���S�#��A�� ����D� �� ��� ���y�y��"�,�-�
� � �#���
��� �� � � �#��s�A&�A;�&A8�;B�__main__)�
__future__r�
__author__�rrr�logging�lib2to3rr�
lib2to3.pgen2r�basicConfigr/r�__name__��r.�<module>rEsZ��
3�%�
2�
��
�
���� ������6�p ��z���F�rD
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists