Viewing File: /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_execfile.cpython-311.pyc
f l d Z ddlmZ ddlmZmZmZmZmZm Z m
Z
mZmZm
Z
G d dej ZdS )zoFixer for execfile.
This converts usages of the execfile function into calls to the built-in
exec() function.
)
fixer_base)
CommaNameCallLParenRParenDotNodeArgListStringsymsc e Zd ZdZdZd ZdS )FixExecfileTz
power< 'execfile' trailer< '(' arglist< filename=any [',' globals=any [',' locals=any ] ] > ')' > >
|
power< 'execfile' trailer< '(' filename=any ')' > >
c p |sJ |d }| d }| d }|j d j d }t | 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 }
| }d|_ t d
d }|
t |t |gz }
t t d |
d }|g}|5| t | g |5| t | 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 A/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_execfile.py transformzFixExecfile.transform s w:&++i((X&& r*3B7==??X^^--uwwvs8K8KL#13 3 3 d6llI%>?? T\CEE4<<#899T\FHHfhh#788:K$& ~~''!(C(( EGG\577H#MMDOO\2>>~KK'--//2333KK&,,..1222DLL$t{;;;; N)__name__
__module____qualname__
BM_compatiblePATTERNr0 r1 r/ r r s/ MG<