Files
PowerToys/PythonHome/Lib/lib2to3/fixes/fix_execfile.pyc

23 lines
2.0 KiB
Plaintext
Raw Normal View History

2014-07-09 18:15:23 +08:00
<03>
<EFBFBD>W`Sc@sydZddlmZddlmZmZmZmZmZm Z m
Z
m Z m Z m Z dejfd<00><00>YZdS(soFixer for execfile.
This converts usages of the execfile function into calls to the built-in
exec() function.
i(t
fixer_base(
tCommatNametCalltLParentRParentDottNodetArgListtStringtsymst FixExecfilecBseZeZdZd<00>ZRS(s<>
power< 'execfile' trailer< '(' arglist< filename=any [',' globals=any [',' locals=any ] ] > ')' > >
|
power< 'execfile' trailer< '(' filename=any ')' > >
cCs<>|s t<00>|d}|jd<00>}|jd<00>}|jdjdj<00>}t|j<00>gd|<00>}ttjtd<00>|g<00>}ttj t
<00>td<00>g<00>ttj t <00>t <00>g<00>g} |g| }
|j<00>} d| _ td d<00>} |
t<00>| t<00>| g} ttd
<00>| d <00>}|g}|dk r_|jt<00>|j<00>g<00>n|dk r<>|jt<00>|j<00>g<00>nttd <00>|d |j <00>S(Ntfilenametglobalstlocalsi<73><69><EFBFBD><EFBFBD>trparenuopenureadu u'exec'ucompileuuexectprefix(tAssertionErrortgettchildrentcloneRRR
tpowerRttrailerRRRRR RRtNonetextend(tselftnodetresultsR R Rtexecfile_parent open_argst open_calltreadt open_exprt filename_argtexec_strt compile_argst compile_calltargs((s#.\Lib\lib2to3\fixes\fix_execfile.pyt transforms* 
!      (t__name__t
__module__tTruet BM_compatibletPATTERNR&(((s#.\Lib\lib2to3\fixes\fix_execfile.pyR sN(t__doc__tRt
fixer_utilRRRRRRRRR R
tBaseFixR (((s#.\Lib\lib2to3\fixes\fix_execfile.pyt<module>sF