Your IP : 13.59.58.68
�
�Q�f � �l � d dl mZ d dlmZmZmZmZmZmZm Z m
Z
mZmZ G d� dej � Zy)� )�
fixer_base)
�Comma�Name�Call�LParen�RParen�Dot�Node�ArgList�String�symsc � � e Zd ZdZdZd� Zy)�FixExecfileTz�
power< 'execfile' trailer< '(' arglist< filename=any [',' globals=any [',' locals=any ] ] > ')' > >
|
power< 'execfile' trailer< '(' filename=any ')' > >
c � � |d }|j d� }|j d� }|j d j d j � }t |j � t � t dd� g|�� }t
t j t d� |g� }t
t j t � t d � g� t
t j t � t � g� g} |g| z }
|j � }d|_ t d
d� }|
t � |t � |gz }
t t d� |
d� }|g}|�)|j! t � |j � g� |�)|j! t � |j � g� t t d
� ||j �� S )N�filename�globals�locals���z"rb"� )�rparen�open�readz'exec'�compile� �exec)�prefix)�get�children�cloner r r r
r
�powerr �trailerr r r r r �extend)�self�node�resultsr r r �execfile_paren� open_args� open_callr � open_expr�filename_arg�exec_str�compile_args�compile_call�argss �A/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_execfile.py� transformzFixExecfile.transform su � ��:�&���+�+�i�(�����X�&�� ���r�*�3�3�B�7�=�=�?���X�^�^�-�u�w��v�s�8K�L�#1�3� �����d�6�l�I�%>�?� ��T�\�\�C�E�4��<�#8�9��T�\�\�F�H�f�h�#7�8�:���K�$�&� � �~�~�'��!����(�C�(�� �E�G�\�5�7�H�#M�M���D��O�\�2�>���~�����K�K���'�-�-�/�2�3����K�K���&�,�,�.�1�2��D��L�$�t�{�{�;�;� N)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr0 � r1 r/ r r s � ��M��G�<r1 r N)r r �
fixer_utilr r r r r r r
r r r
�BaseFixr r7 r1 r/ �<module>r: s0 ��� �1� 1� 1�&<�*�$�$� &<r1