|
Server : LiteSpeed System : Linux server51.dnsbootclub.com 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64 User : nandedex ( 1060) PHP Version : 8.1.33 Disable Function : NONE Directory : /opt/cppython/lib/python3.8/lib2to3/fixes/__pycache__/ |
U
?��g� � @ s: d Z ddlmZ ddlmZmZmZ G dd� dej�ZdS )z�Fixer 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)�Comma�Name�Callc @ s e Zd ZdZdZdd� ZdS )�FixExecTzx
exec_stmt< 'exec' a=any 'in' b=any [',' c=any] >
|
exec_stmt< 'exec' (not atom<'(' [any] ')'>) a=any >
c C s� | j }|d }|�d�}|�d�}|�� g}d|d _|d k rR|�t� |�� g� |d k rn|�t� |�� g� ttd�||jd�S )N�a�b�c� � �exec)�prefix)�syms�getZcloner
�extendr r r )�selfZnode�resultsr r r r �args� r �5/opt/cppython/lib/python3.8/lib2to3/fixes/fix_exec.py� transform s
zFixExec.transformN)�__name__�
__module__�__qualname__Z
BM_compatibleZPATTERNr r r r r r s r N) �__doc__r
r Z
fixer_utilr r r ZBaseFixr r r r r �<module> s