AlkantarClanX12

Your IP : 3.139.87.113


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_renames.cpython-312.opt-2.pyc

�

�Q�f���h�	ddlmZddlmZmZdddiiZiZd�Zd�ZGd�d	ej�Z
y
)�)�
fixer_base)�Name�
attr_chain�sys�maxint�maxsizec�L�ddjtt|��zdzS)N�(�|�))�join�map�repr)�memberss �@/opt/alt/python312/lib64/python3.12/lib2to3/fixes/fix_renames.py�
alternatesrs"������#�d�G�,�-�-��3�3�c	#��K�ttj��D]J\}}t|j��D])\}}|t||f<d|�d|�d|�d���d|�d|�d����+�Ly�w)Nz3
                  import_from< 'from' module_name=z, 'import'
                      ( attr_name=z | import_as_name< attr_name=z! 'as' any >) >
                  z&
                  power< module_name=z trailer< '.' attr_name=z > any* >
                  )�list�MAPPING�items�LOOKUP)�module�replace�old_attr�new_attrs    r�
build_patternrsl������
�
��0����"&�w�}�}��"7��H�h�)1�F�F�H�%�&� ��8�5�
5� ��+�
+�#8�1�s�A,A.c�X��eZdZdZdj	e��ZdZ�fd�Zd�Z	�xZ
S)�
FixRenamesTr�prec�z���tt|�
��|�}|r!t�fd�t	|d�D��ry|Sy)Nc3�.�K�|]}�|����y�w)N�)�.0�obj�matchs  �r�	<genexpr>z#FixRenames.match.<locals>.<genexpr>5s�����D�)C�#�5��:�)C�s��parentF)�superrr&�anyr)�self�node�resultsr&�	__class__s   @�rr&zFixRenames.match1s;����j�$�-����+����D��D�(�)C�D�D���N�rc���|jd�}|jd�}|rI|rFt|j|jf}|jt	||j
���yyy)N�module_name�	attr_name)�prefix)�getr�valuerrr2)r+r,r-�mod_namer1rs      r�	transformzFixRenames.transform>s^���;�;�}�-���K�K��,�	��	��x�~�~�y���?�@�H����d�8�I�4D�4D�E�F�"�8r)�__name__�
__module__�__qualname__�
BM_compatibler
r�PATTERN�orderr&r6�
__classcell__)r.s@rrr*s(����M��h�h�}��'�G��E��GrrN)�r�
fixer_utilrrrrrr�BaseFixrr#rr�<module>rAsF����)��H�y�)���	��4�+�*G��#�#�Gr