HEX
Server: Apache
System: Linux zacp120.webway.host 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
User: govancoz (1003)
PHP: 8.3.26
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: //usr/local/lib/python3.10/lib2to3/fixes/__pycache__/fix_renames.cpython-310.opt-1.pyc
o

�i��@sVdZddlmZddlmZmZdddiiZiZdd�Zd	d
�Z	Gdd�dej
�Zd
S)z?Fix incompatible renames

Fixes:
  * sys.maxint -> sys.maxsize
�)�
fixer_base)�Name�
attr_chain�sysZmaxint�maxsizecCsdd�tt|��dS)N�(�|�))�join�map�repr)�members�r�6/usr/local/lib/python3.10/lib2to3/fixes/fix_renames.py�
alternatessrccs\�tt���D]$\}}t|���D]\}}|t||f<d|||fVd||fVqqdS)Nz�
                  import_from< 'from' module_name=%r 'import'
                      ( attr_name=%r | import_as_name< attr_name=%r 'as' any >) >
                  z^
                  power< module_name=%r trailer< '.' attr_name=%r > any* >
                  )�list�MAPPING�items�LOOKUP)�module�replaceZold_attr�new_attrrrr�
build_patterns�����rcs8eZdZdZd�e��ZdZ�fdd�Zdd�Z	�Z
S)�
FixRenamesTr�precs@tt|�j��|�}|rt�fdd�t|d�D��rdS|SdS)Nc3s�|]}�|�VqdS)Nr)�.0�obj��matchrr�	<genexpr>5s�z#FixRenames.match.<locals>.<genexpr>�parentF)�superrr�anyr)�self�node�results��	__class__rrr1szFixRenames.matchcCsL|�d�}|�d�}|r"|r$t|j|jf}|�t||jd��dSdSdS)N�module_name�	attr_name)�prefix)�getr�valuerrr*)r#r$r%Zmod_namer)rrrr�	transform>s

�zFixRenames.transform)�__name__�
__module__�__qualname__Z
BM_compatibler
rZPATTERN�orderrr-�
__classcell__rrr&rr*s
rN)�__doc__�rZ
fixer_utilrrrrrrZBaseFixrrrrr�<module>s