Sindbad~EG File Manager
�
�f��l�dZddlmZddlmZmZmZmZmZm Z m
Z
mZmZm
Z
Gd�dej��ZdS)zoFixer for execfile.
This converts usages of the execfile function into calls to the built-in
exec() function.
�)�
fixer_base)
�Comma�Name�Call�LParen�RParen�Dot�Node�ArgList�String�symsc��eZdZdZdZd�ZdS)�FixExecfileTz�
power< 'execfile' trailer< '(' arglist< filename=any [',' globals=any [',' locals=any ] ] > ')' > >
|
power< 'execfile' trailer< '(' filename=any ')' > >
c�h�|d}|�d��}|�d��}|jdjd���}t|���t ��tdd��g|���}t
tjtd��|g��}t
tj
t��td ��g��t
tj
t��t��g��g} |g| z}
|���}d|_td
d��}|
t ��|t ��|gz}
ttd��|
d��}|g}|�5|�t ��|���g��|�5|�t ��|���g��ttd
��||j���S)N�filename�globals�locals���z"rb"� )�rparen�open�readz'exec'�compile��exec)�prefix)�get�children�clonerrrr
r
�powerr�trailerr rrrr�extend)�self�node�resultsrrr�execfile_paren� open_args� open_callr� open_expr�filename_arg�exec_str�compile_args�compile_call�argss �A/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_execfile.py� transformzFixExecfile.transforms����:�&���+�+�i�(�(�����X�&�&����r�*�3�B�7�=�=�?�?���X�^�^�-�-�u�w�w��v�s�8K�8K�L�#1�3�3�3� ����d�6�l�l�I�%>�?�?� ��T�\�C�E�E�4��<�<�#8�9�9��T�\�F�H�H�f�h�h�#7�8�8�:���K�$�&� � �~�~�'�'��!����(�C�(�(�� �E�G�G�\�5�7�7�H�#M�M���D��O�O�\�2�>�>���~�����K�K����'�-�-�/�/�2�3�3�3����K�K����&�,�,�.�.�1�2�2�2��D��L�L�$�t�{�;�;�;�;�N)�__name__�
__module__�__qualname__�
BM_compatible�PATTERNr0�r1r/rrs/�������M��G�<�<�<�<�<r1rN)�__doc__rr�
fixer_utilrrrrrr r
rrr
�BaseFixrr7r1r/�<module>r;s�����������1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�1�&<�&<�&<�&<�&<�*�$�&<�&<�&<�&<�&<r1
Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists