Your IP : 18.217.241.235
�
��f� c @ sy d Z d d l m Z d d l m Z m Z m Z m Z m Z m Z m
Z
m Z m Z m
Z
Gd d � d e j � Z d S( uo Fixer for execfile.
This converts usages of the execfile function into calls to the built-in
exec() function.
i ( u
fixer_base(
u Commau Nameu Callu LParenu RParenu Dotu Nodeu ArgListu Stringu symsc B s, | Ee Z d Z d Z d Z d d � Z d S( u FixExecfileu�
power< 'execfile' trailer< '(' arglist< filename=any [',' globals=any [',' locals=any ] ] > ')' > >
|
power< 'execfile' trailer< '(' filename=any ')' > >
c C s� | s t � | d } | j d � } | j d � } | j d j d j � } t | j � g d | �} t t j t d � | g � } t t j t
� t d � g � t t j t � t � g � g } | g | }
| j � } d | _
t d d � } |
t � | t � | g }
t t d
� |
d � } | g } | d k r_| j t � | j � g � n | d k r�| j t � | j � g � n t t d � | d
| j
�S( Nu filenameu globalsu localsi u rparenu openu readu u 'exec'u compileu u execu prefixi����i����( u AssertionErroru getu childrenu cloneu ArgListu Nodeu symsu poweru Nameu traileru Dotu LParenu RParenu prefixu Stringu Commau Callu Noneu extend( u selfu nodeu resultsu filenameu globalsu localsu execfile_parenu open_argsu open_callu readu open_expru filename_argu exec_stru compile_argsu compile_callu args( ( u? /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_execfile.pyu transform s*
!
u FixExecfile.transformNT( u __name__u
__module__u __qualname__u Trueu
BM_compatibleu PATTERNu transform( u
__locals__( ( u? /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_execfile.pyu FixExecfile s u FixExecfileN( u __doc__u u
fixer_baseu
fixer_utilu Commau Nameu Callu LParenu RParenu Dotu Nodeu ArgListu Stringu symsu BaseFixu FixExecfile( ( ( u? /opt/alt/python33/lib64/python3.3/lib2to3/fixes/fix_execfile.pyu <module> s F