AlkantarClanX12

Your IP : 3.145.177.173


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_renames.cpython-311.pyc

�

c��f���h�dZddlmZddlmZmZdddiiZiZd�Zd�Z	Gd	�d
ej
��ZdS)z?Fix incompatible renames

Fixes:
  * sys.maxint -> sys.maxsize
�)�
fixer_base)�Name�
attr_chain�sys�maxint�maxsizec�^�dd�tt|����zdzS)N�(�|�))�join�map�repr)�memberss �@/opt/alt/python311/lib64/python3.11/lib2to3/fixes/fix_renames.py�
alternatesrs(������#�d�G�,�,�-�-�-��3�3�c	#�K�tt�����D]Q\}}t|�����D]*\}}|t||f<d|�d|�d|�d�V�d|�d|�d�V��+�RdS)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_patternrs�������
�
���0�0�+�+����"&�w�}�}���"7�"7�	+�	+��H�h�)1�F�F�H�%�&�&� ������8�8�8�5�
5�
5�
5�
5� ������+�
+�
+�
+�
+�	+�+�+rc�f��eZdZdZd�e����ZdZ�fd�Zd�Z	�xZ
S)�
FixRenamesTr�prec����tt|��j��|��}|r-t�fd�t	|d��D����rdS|SdS)Nc3�.�K�|]}�|��V��dS)N�)�.0�obj�matchs  �r�	<genexpr>z#FixRenames.match.<locals>.<genexpr>5s+�����D�D�#�5�5��:�:�D�D�D�D�D�Dr�parentF)�superrr&�anyr)�self�node�resultsr&�	__class__s   @�rr&zFixRenames.match1si�����j�$�'�'�-���%��+�+���	��D�D�D�D��D�(�)C�)C�D�D�D�D�D�
��u��N��urc���|�d��}|�d��}|rF|rFt|j|jf}|�t	||j�����dSdSdS)N�module_name�	attr_name)�prefix)�getr�valuerrr2)r+r,r-�mod_namer1rs      r�	transformzFixRenames.transform>s����;�;�}�-�-���K�K��,�,�	��	G�	�	G��x�~�y��?�@�H����d�8�I�4D�E�E�E�F�F�F�F�F�	G�	G�	G�	Gr)�__name__�
__module__�__qualname__�
BM_compatibler
r�PATTERN�orderr&r6�
__classcell__)r.s@rrr*so��������M��h�h�}�}���'�'�G��E������G�G�G�G�G�G�GrrN)�__doc__�r�
fixer_utilrrrrrr�BaseFixrr#rr�<module>rBs�����������)�)�)�)�)�)�)�)��H�y�)���	��4�4�4�+�+�+�*G�G�G�G�G��#�G�G�G�G�Gr