python (3.12.0)
̑e n d Z ddlmZ ddlmZmZmZmZmZm Z m
Z
mZmZm
Z
G d dej Zy)zoFixer for execfile.
This converts usages of the execfile function into calls to the built-in
exec() function.
)
fixer_base)
CommaNameCallLParenRParenDotNodeArgListStringsymsc e Zd ZdZdZd Zy)FixExecfileTz
power< 'execfile' trailer< '(' arglist< filename=any [',' globals=any [',' locals=any ] ] > ')' > >
|
power< 'execfile' trailer< '(' filename=any ')' > >
c |sJ |d }|j d }|j d }|j d j d j }t |j t t dd g| }t
t j t d |g }t
t j t t d g t
t j t t g g} |g| z }
|j }d|_ t d
d }|
t |t |gz }
t t d |
d }|g}|)|j! t |j g |)|j! t |j g t t d
||j S )Nfilenameglobalslocalsz"rb" )rparenopenreadz'exec'compile exec)prefix)getchildrencloner r r r
r
powerr trailerr r r r r extend)selfnoderesultsr r r execfile_paren open_args open_callr open_exprfilename_argexec_strcompile_argscompile_callargss N/BuggyBox/python/3.12.0/bootstrap/lib/python3.12/lib2to3/fixes/fix_execfile.py transformzFixExecfile.transform sz :&++i(X& r*33B7==?X^^-uwvs8KL#13 d6lI%>? T\\CE4<#89T\\FHfh#78:K$& ~~'!(C( EG\57H#MMDO\2>~KK'--/23KK&,,.12DL$t{{;; N)__name__
__module____qualname__
BM_compatiblePATTERNr0 r1 r/ r r s MG<r1 r N)__doc__r r
fixer_utilr r r r r r r
r r r
BaseFixr r7 r1 r/ <module>r; s0 1 1 1&<*$$ &<r1