ok
Direktori : /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/ |
Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_imports.cpython-311.opt-2.pyc |
� �f4 � �P � d dl mZ d dlmZmZ i dd�dd�dd�dd �d d�dd �dd�dd�dd�dd�dd�dd�dd�dd�dd�dd�d d!�i d"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�Z G dQ� 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�tkFontztkinter.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.parserzhttp.cookieszhttp.cookiejarzhttp.server� subprocess�collectionszurllib.parsezurllib.robotparser)�SimpleXMLRPCServer�httplib�htmlentitydefs� HTMLParser�Cookie� cookielib�BaseHTTPServer�SimpleHTTPServer� CGIHTTPServer�commands� UserString�UserList�urlparse�robotparserc �^ � dd� t t | � � � � z dz S )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|z V � d|�d|�d �V � d |z V � d S )Nz | c � � g | ]}d |z ��S )zmodule_name='%s'� )�.0�keys rL � <listcomp>z!build_pattern.<locals>.<listcomp>B s � �G�G�G��-��3�G�G�GrN 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* >)rI rM �keys)�mapping�mod_list� bare_namess rL � build_patternrY A s� � � � ��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�LrN c �N � � e Zd ZdZdZeZdZd� Z� fd�Z � fd�Z � fd�Zd� Z� xZ S )� FixImportsT� c �P � d� t | j � � � � S )NrG )rI rY rV )�selfs rL rY zFixImports.build_pattern` s � ��x�x� �d�l�3�3�4�4�4rN c � �� | � � � | _ t t | � � � � � d S �N)rY �PATTERN�superr[ �compile_pattern)r^ � __class__s �rL rc zFixImports.compile_patternc s: �� � �)�)�+�+��� �j�$���/�/�1�1�1�1�1rN c � ��� t t | � � j � �|� � }|r1d|vr+t �fd�t |d� � D � � � � rdS |S dS )N�bare_with_attrc 3 �. �K � | ]} �|� � V � �d S r` rQ )rR �obj�matchs �rL � <genexpr>z#FixImports.match.<locals>.<genexpr>q s+ �� � � �I�I�s���c� � �I�I�I�I�I�IrN �parentF)rb r[ ri �anyr )r^ �node�resultsri rd s @�rL ri zFixImports.matchj sv ��� ��j�$�'�'�-���%��+�+��� � �w�.�.��I�I�I�I�j��x�.H�.H�I�I�I�I�I� /��u��N��urN c �h �� t t | � � � ||� � i | _ d S r` )rb r[ � start_tree�replace)r^ �tree�filenamerd s �rL rp zFixImports.start_treev s. �� � �j�$���*�*�4��:�:�:�����rN c �� � |� d� � }|r�|j }| j | }|� t ||j �� � � � d|v r || j |<