HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/lib2to3/tests/__pycache__/pytree_idempotency.cpython-310.opt-1.pyc
o

�i�	�@s�dZddlmZdZddlmZddlZddlZddlZddlm	Z	dd	lm
Z
dd
l
mZe��dd�Z
d
d�ZedkrCe
�dSdS)z,Main program for testing the infrastructure.�)�print_functionz#Guido van Rossum <guido@python.org>�)�supportN�)�pytree)�pgen2)�driverc
Cs�t�d�}tj|tjd�}d}|j|dd�}t||�std�tj	dd�s(dSg}tj
D]>}tj
|}|dus=t|d�s>q-|j}|�
d	�rL|dd
�}|�
d�sRq-td|tjd
�|j|dd�}t||�rk|�|�q-tjD]c}zt�|�}Wn	ty�Yqowtd|dtjd
�|D]D}|�
d�s�q�td|tjd
�tj�||�}z	|j|dd�}Wntjjy�}	ztd|	�WYd}	~	q�d}	~	wwt||�r�|�|�q�qo|s�td�dStd�|D]}td|�q�dS)NzGrammar.txt)�convertz
example.pyT)�debugz	No diffs.r�__file__z.pyc���z.pyZParsing)�fileZScanningz...zParseError:zNo problems.  Congratulations!zProblems in following files:z***)rZload_grammarZDriverrr	Z
parse_file�diff�print�sys�argv�modules�hasattrr�endswith�stderr�append�path�os�listdir�OSError�joinr�parseZ
ParseError)
ZgrZdr�fn�treeZproblems�name�mod�dir�names�err�r$�=/usr/local/lib/python3.10/lib2to3/tests/pytree_idempotency.py�mainsf







�
�
��

���r&c	CsXtdd�}z
|�t|��W|��n|��wz
t�d|�Wt�d�St�d�w)N�@�wzdiff -u %s @)�open�write�str�closer�system�remove)rr�fr$r$r%rRs
r�__main__)�__doc__Z
__future__r�
__author__�rrr�loggingrrr�basicConfigr&r�__name__r$r$r$r%�<module>s 8
�