Your IP : 18.188.218.134


Current Path : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_imports.cpython-311.opt-2.pyc

�

c��f4��P�	ddlmZddlmZmZidd�dd�dd�dd	�d
d�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.d/�d0d1�d2d3�d4d5�d6d7�d8d9�d:d;�d<d=�d>d?�d@dA�dBdC��dCdDdEdFdGdHdIdIdIdJdKdKdLdMdN��ZdO�ZefdP�ZGdQ�dRej��Z	dSS)T�)�
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�^�dd�tt|����zdzS)N�(�|�))�join�mapr)�memberss �@/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_imports.py�
alternatesrM=s(������#�d�G�,�,�-�-�-��3�3�c#��K�d�d�|D����}t|�����}d|�d|�d�V�d|zV�d|�d|�d	�V�d
|zV�dS)Nz | c��g|]}d|z��S)zmodule_name='%s'�)�.0�keys  rL�
<listcomp>z!build_pattern.<locals>.<listcomp>Bs��G�G�G��-��3�G�G�GrNz$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�mod_list�
bare_namess   rL�
build_patternrYAs������z�z�G�G�w�G�G�G�H�H�H��G�L�L�N�N�+�+�J�J����8�8�8�%�%�%�%�����������8�8�8�%�%�%�%�@�*�
L�L�L�L�L�LrNc�N��eZdZdZdZeZdZd�Z�fd�Z	�fd�Z
�fd�Zd�Z�xZ
S)�
FixImportsT�c�P�d�t|j����S)NrG)rIrYrV)�selfs rLrYzFixImports.build_pattern`s���x�x�
�d�l�3�3�4�4�4rNc���|���|_tt|�����dS�N)rY�PATTERN�superr[�compile_pattern)r^�	__class__s �rLrczFixImports.compile_patterncs:����)�)�+�+���
�j�$���/�/�1�1�1�1�1rNc����tt|��j��|��}|r1d|vr+t�fd�t	|d��D����rdS|SdS)N�bare_with_attrc3�.�K�|]}�|��V��dSr`rQ)rR�obj�matchs  �rL�	<genexpr>z#FixImports.match.<locals>.<genexpr>qs+�����I�I�s���c�
�
�I�I�I�I�I�IrN�parentF)rbr[ri�anyr)r^�node�resultsrirds   @�rLrizFixImports.matchjsv�����j�$�'�'�-���%��+�+���	� �w�.�.��I�I�I�I�j��x�.H�.H�I�I�I�I�I�/��u��N��urNc�h��tt|���||��i|_dSr`)rbr[�
start_tree�replace)r^�tree�filenamerds   �rLrpzFixImports.start_treevs.���
�j�$���*�*�4��:�:�:�����rNc���|�d��}|r�|j}|j|}|�t	||j�����d|vr
||j|<d|vr/|�|��}|r|�||��dSdSdS|dd}|j�|j��}|r+|�t	||j�����dSdS)N�module_name)�prefix�name_import�multiple_importsrf�)�get�valuerVrqrrvri�	transform)r^rmrn�
import_mod�mod_name�new_name�	bare_names       rLr|zFixImports.transformzs'���[�[��/�/�
��	K�!�'�H��|�H�-�H����t�H�Z�5F�G�G�G�H�H�H���'�'�*2���X�&�!�W�,�,�
�*�*�T�*�*���2��N�N�4��1�1�1�1�1�-�,�2�2� � 0�1�!�4�I��|�'�'�	��8�8�H��
K��!�!�$�x�	�8H�"I�"I�"I�J�J�J�J�J�
K�
KrN)�__name__�
__module__�__qualname__�
BM_compatible�keep_line_order�MAPPINGrV�	run_orderrYrcrirpr|�
__classcell__)rds@rLr[r[Us���������M��O��G��I�5�5�5�2�2�2�2�2�
�
�
�
�
������K�K�K�K�K�K�KrNr[N)
�r�
fixer_utilrrr�rMrY�BaseFixr[rQrNrL�<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�$�/�%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�2�F"1�#�-�'�#�(�*�,�)�#�'�%�&�/�c2�2�2��j4�4�4�"�M�M�M�M�(<K�<K�<K�<K�<K��#�<K�<K�<K�<K�<KrN

?>