ok

Mini Shell

Direktori : /opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/lib2to3/fixes/__pycache__/fix_exec.cpython-35.pyc



K�Ma��@s_dZddlmZddlmZddlmZmZmZGdd�dej�Z	dS)z�Fixer for exec.

This converts usages of the exec statement into calls to a built-in
exec() function.

exec code in ns1, ns2 -> exec(code, ns1, ns2)
�)�pytree)�
fixer_base)�Comma�Name�Callc@s(eZdZdZdZdd�ZdS)�FixExecTzx
    exec_stmt< 'exec' a=any 'in' b=any [',' c=any] >
    |
    exec_stmt< 'exec' (not atom<'(' [any] ')'>) a=any >
    cCs�|st�|j}|d}|jd�}|jd�}|j�g}d|d_|dk	r�|jt�|j�g�|dk	r�|jt�|j�g�ttd�|d|j�S)N�a�b�c���exec�prefix)	�AssertionError�syms�getZcloner�extendrrr)�selfZnodeZresultsrrr	r
�args�r�;/opt/alt/python35/lib64/python3.5/lib2to3/fixes/fix_exec.py�	transforms	

zFixExec.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNrrrrrrsrN)
�__doc__rrrZ
fixer_utilrrrZBaseFixrrrrr�<module>
s

Zerion Mini Shell 1.0