| Server IP : 127.0.0.1 / Your IP : 216.73.216.109 Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10 System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64 User : SERVERWEB ( 0) PHP Version : 8.1.10 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/cygwin64/lib/python3.7/lib2to3/fixes/__pycache__/ |
Upload File : |
B
5-�a� � @ 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 �,/usr/lib/python3.7/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