Hacked By AnonymousFox

Current Path : /opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python312/lib64/python3.12/lib2to3/fixes/__pycache__/fix_imports.cpython-312.pyc

�

�Q�f4��T�dZddlmZddlmZmZidd�dd�dd�d	d
�dd�d
d�dd�dd�dd�dd�dd�dd�dd�dd�dd�dd �d!d"�id#d$�d%d&�d'd(�d)d*�d+d,�d-d.�d/d0�d1d2�d3d4�d5d6�d7d8�d9d:�d;d<�d=d>�d?d@�dAdB�dCdD��dDdEdFdGdHdIdJdJdJdKdLdLdMdNdO��ZdP�ZefdQ�ZGdR�dSej�Z
yT)Uz/Fix incompatible imports and module references.�)�
fixer_base)�Name�
attr_chain�StringIO�io�	cStringIO�cPickle�pickle�__builtin__�builtins�copy_reg�copyreg�Queue�queue�SocketServer�socketserver�ConfigParser�configparser�repr�reprlib�
FileDialogztkinter.filedialog�tkFileDialog�SimpleDialogztkinter.simpledialog�tkSimpleDialog�tkColorChooserztkinter.colorchooser�tkCommonDialogztkinter.commondialog�Dialogztkinter.dialog�Tkdndztkinter.dnd�tkFontztkinter.font�tkMessageBoxztkinter.messagebox�ScrolledTextztkinter.scrolledtext�Tkconstantsztkinter.constants�Tixztkinter.tix�ttkztkinter.ttk�Tkinter�tkinter�
markupbase�_markupbase�_winreg�winreg�thread�_thread�dummy_thread�
_dummy_thread�dbhashzdbm.bsd�dumbdbmzdbm.dumb�dbmzdbm.ndbm�gdbmzdbm.gnu�	xmlrpclibz
xmlrpc.client�DocXMLRPCServerz
xmlrpc.serverzhttp.clientz
html.entitieszhtml.parserzhttp.cookieszhttp.cookiejarzhttp.server�
subprocess�collectionszurllib.parsezurllib.robotparser)�SimpleXMLRPCServer�httplib�htmlentitydefs�
HTMLParser�Cookie�	cookielib�BaseHTTPServer�SimpleHTTPServer�
CGIHTTPServer�commands�
UserString�UserList�urlparse�robotparserc�L�ddjtt|��zdzS)N�(�|�))�join�mapr)�memberss �@/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_imports.py�
alternatesrM=s"������#�d�G�,�-�-��3�3�c#��K�dj|D�cgc]}d|z��	c}�}t|j��}d|�d|�d���d|z��d|�d|�d	���d
|z��ycc}w�w)Nz | zmodule_name='%s'z$name_import=import_name< 'import' ((z;) |
               multiple_imports=dotted_as_names< any* (z) any* >) >
          z�import_from< 'from' (%s) 'import' ['(']
              ( any | import_as_name< any 'as' any > |
                import_as_names< any* >)  [')'] >
          z(import_name< 'import' (dotted_as_name< (zg) 'as' any > |
               multiple_imports=dotted_as_names<
                 any* dotted_as_name< (z!) 'as' any > any* >) >
          z3power< bare_with_attr=(%s) trailer<'.' any > any* >)rIrM�keys)�mapping�key�mod_list�
bare_namess    rL�
build_patternrUAs������z�z�w�G�w��-��3�w�G�H�H��G�L�L�N�+�J��8�%�%������8�%�%�@�*�
L�L��!H�s�A(�A#�A
A(c�N��eZdZdZdZeZdZd�Z�fd�Z	�fd�Z
�fd�Zd�Z�xZ
S)�
FixImportsT�c�J�djt|j��S)NrG)rIrUrQ)�selfs rLrUzFixImports.build_pattern`s���x�x�
�d�l�l�3�4�4rNc�T��|j�|_tt|��y�N)rU�PATTERN�superrW�compile_pattern)rZ�	__class__s �rLr_zFixImports.compile_patterncs"����)�)�+���
�j�$�/�1rNc����tt|�
��|�}|r%d|vrt�fd�t	|d�D��ry|Sy)N�bare_with_attrc3�.�K�|]}�|����y�wr\�)�.0�obj�matchs  �rL�	<genexpr>z#FixImports.match.<locals>.<genexpr>qs�����I�.H�s��c�
�.H�s��parentF)r^rWrg�anyr)rZ�node�resultsrgr`s   @�rLrgzFixImports.matchjsE����j�$�-����+��� �w�.��I�j��x�.H�I�I���N�rNc�<��tt|�||�i|_yr\)r^rW�
start_tree�replace)rZ�tree�filenamer`s   �rLrnzFixImports.start_treevs���
�j�$�*�4��:���rNc���|jd�}|r�|j}|j|}|jt	||j
���d|vr||j|<d|vr'|j
|�}|r|j||�yyy|dd}|jj|j�}|r'|jt	||j
���yy)N�module_name)�prefix�name_import�multiple_importsrb�)�get�valuerQrorrtrg�	transform)rZrkrl�
import_mod�mod_name�new_name�	bare_names       rLrzzFixImports.transformzs����[�[��/�
��!�'�'�H��|�|�H�-�H����t�H�Z�5F�5F�G�H���'�*2����X�&�!�W�,�
�*�*�T�*����N�N�4��1��
-� � 0�1�!�4�I��|�|�'�'�	���8�H���!�!�$�x�	�8H�8H�"I�J�rN)�__name__�
__module__�__qualname__�
BM_compatible�keep_line_order�MAPPINGrQ�	run_orderrUr_rgrnrz�
__classcell__)r`s@rLrWrWUs3����M��O��G��I�5�2�
��KrNrWN)�__doc__�r�
fixer_utilrrr�rMrU�BaseFixrWrdrNrL�<module>r�s��5��)�2�:��2���2��h�2��:�2��y�	2�
�G�2��>�
2��>�2��9�2��-�2��/�2��1�2��3�2��3�2��3�2��%�2� �M�!2�"�^�#2�$�/�%2�&�1�'2�(�-�)2�*�-�+2�,�-�-2�.�i�/2�0��12�2�h�32�4�Y�52�6�?�72�:�Y�;2�<�j�=2�>�*�?2�@�9�A2�B��C2�D�o�E2�F"1�#�-�'�#�(�*�,�)�#�'�%�&�/�c2��j4�"�M�(<K��#�#�<KrN

Hacked By AnonymousFox1.0, Coded By AnonymousFox