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

�

�Q�f���j�dZddlmZddlmZmZdddiiZiZd�Zd�Z	Gd	�d
ej�Zy)z?Fix incompatible renames

Fixes:
  * sys.maxint -> sys.maxsize
�)�
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)�__doc__�r�
fixer_utilrrrrrr�BaseFixrr#rr�<module>rBsF����)��H�y�)���	��4�+�*G��#�#�Gr

Hacked By AnonymousFox1.0, Coded By AnonymousFox