Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/lib2to3/fixes/__pycache__/fix_renames.cpython-311.pyc
�

�,d���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

ZeroDay Forums Mini