????
Your IP : 3.142.201.19
a
�DOg�@sRddlmZddlmZmZmZmZmZmZm Z m
Z
mZmZGdd�dej
�ZdS)�)�
fixer_base)
�Comma�Name�Call�LParen�RParen�Dot�Node�ArgList�String�symsc@seZdZdZdZdd�ZdS)�FixExecfileTz�
power< 'execfile' trailer< '(' arglist< filename=any [',' globals=any [',' locals=any ] ] > ')' > >
|
power< 'execfile' trailer< '(' filename=any ')' > >
cCs&|d}|�d�}|�d�}|jdjd��}t|��t�tdd�g|d�}ttjt d�|g�}ttj
t�t d �g�ttj
t�t
�g�g} |g| }
|��}d|_td
d�}|
t�|t�|g}
tt d�|
d�}|g}|dur�|�t�|��g�|du�r|�t�|��g�tt d
�||jd�S)N�filename�globals�locals���z"rb"� )Zrparen�open�readz'exec'�compile��exec)�prefix)�getZchildrenZcloner
rrr rZpowerrZtrailerrrrrr�extend)�selfZnode�resultsrrrZexecfile_parenZ open_argsZ open_callrZ open_exprZfilename_argZexec_strZcompile_argsZcompile_call�args�r�2/usr/lib64/python3.9/lib2to3/fixes/fix_execfile.py� transforms.
��
zFixExecfile.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr rrrrr
sr
N)rrZ
fixer_utilrrrrrrr r
rrZBaseFixr
rrrr�<module>
s0