AlkantarClanX12

Your IP : 3.15.203.242


Current Path : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_execfile.cpython-35.opt-2.pyc



���]��@ssddlmZddlmZmZmZmZmZmZm	Z	m
Z
mZmZGdd�dej
�ZdS)�)�
fixer_base)
�Comma�Name�Call�LParen�RParen�Dot�Node�ArgList�String�symsc@s(eZdZdZdZdd�ZdS)�FixExecfileTz�
    power< 'execfile' trailer< '(' arglist< filename=any [',' globals=any [',' locals=any ] ] > ')' > >
    |
    power< 'execfile' trailer< '(' filename=any ')' > >
    cCs�|d}|jd�}|jd�}|jdjdj�}t|j�gd|�}ttjtd�|g�}ttjt	�td�g�ttjt
�t�g�g}	|g|	}
|j�}d|_t
d	d�}|
t�|t�|g}
ttd
�|
d�}|g}|dk	rP|jt�|j�g�|dk	rx|jt�|j�g�ttd�|d
|j�S)N�filename�globals�locals�Zrparen�open�read� z'exec'�compile��exec�prefix���r)�getZchildrenZcloner
r	rZpowerrZtrailerrrrrrrr�extend)�selfZnode�resultsrrrZexecfile_parenZ	open_argsZ	open_callrZ	open_exprZfilename_argZexec_strZcompile_argsZcompile_call�args�r�1/opt/alt/python35/lib64/python3.5/fix_execfile.py�	transforms(
!
		zFixExecfile.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr!rrrr r
sr
N)rrZ
fixer_utilrrrrrrr	r
rrZBaseFixr
rrrr �<module>
sF