Server IP : 162.0.232.140 / Your IP : 18.222.57.238 Web Server : LiteSpeed System : Linux premium139.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64 User : micrcvoy ( 740) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/proc/self/root/lib64/python3.8/lib2to3/fixes/__pycache__/ |
Upload File : |
U e5d� � @ 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� |st �| j}|d }|�d�}|�d�}|�� g}d|d _|d k rZ|�t� |�� g� |d k rv|�t� |�� g� ttd�||jd�S )N�a�b�c� � �exec)�prefix) �AssertionError�syms�getZcloner �extendr r r )�selfZnodeZresultsr r r r �args� r �./usr/lib64/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