• File: fix_exec.cpython-37.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/opt/alt/python37/lib64/python3.7/lib2to3/fixes/__pycache__/fix_exec.cpython-37.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 1.12 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Rj@s:dZddlmZddlmZmZmZGdddejZdS)zFixer 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)
)
fixer_base)CommaNameCallc@seZdZdZdZddZdS)FixExecTzx
    exec_stmt< 'exec' a=any 'in' b=any [',' c=any] >
    |
    exec_stmt< 'exec' (not atom<'(' [any] ')'>) a=any >
    cCs|st|j}|d}|d}|d}|g}d|d_|dk	rZ|t|g|dk	rv|t|gttd||jdS)Nabcexec)prefix)	AssertionErrorsymsgetZcloner
extendrrr)selfZnodeZresultsrrrr	argsr;/opt/alt/python37/lib64/python3.7/lib2to3/fixes/fix_exec.py	transforms



zFixExec.transformN)__name__
__module____qualname__Z
BM_compatibleZPATTERNrrrrrrsrN)	__doc__r
rZ
fixer_utilrrrZBaseFixrrrrr<module>
s