| Server IP : 66.29.146.62 / Your IP : 216.73.216.152 Web Server : LiteSpeed System : Linux premium231.web-hosting.com 4.18.0-553.45.1.lve.el8.x86_64 #1 SMP Wed Mar 26 12:08:09 UTC 2025 x86_64 User : dokkdzvi ( 925) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python-internal/lib64/python3.11/lib2to3/fixes/__pycache__/ |
Upload File : |
�
!A?h� � �P � d Z ddlmZ ddlmZmZmZ G d� 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 � � e Zd ZdZdZd� ZdS )�FixExecTzx
exec_stmt< 'exec' a=any 'in' b=any [',' c=any] >
|
exec_stmt< 'exec' (not atom<'(' [any] ')'>) a=any >
c �� � |sJ �| j }|d }|� d� � }|� d� � }|� � � g}d|d _ |�5|� t � � |� � � g� � |�5|� t � � |� � � g� � t
t d� � ||j �� � S )N�a�b�c� � �exec)�prefix)�syms�get�cloner �extendr r r )�self�node�resultsr r
r r �argss �C/opt/alt/python-internal/lib64/python3.11/lib2to3/fixes/fix_exec.py� transformzFixExec.transform s� � ����w��y���C�L���K�K������K�K�������� � �{����Q����=��K�K����!�'�'�)�)�,�-�-�-��=��K�K����!�'�'�)�)�,�-�-�-��D��L�L�$�t�{�;�;�;�;� N)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr � r r r r s/ � � � � � ��M��G�
<�
<�
<�
<�
<r r N) �__doc__r
r �
fixer_utilr r r �BaseFixr r! r r �<module>r% sx ��� � � � � � � � *� *� *� *� *� *� *� *� *� *�<� <� <� <� <�j� � <� <� <� <� <r