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 :  /usr/lib64/python2.7/lib2to3/fixes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/lib2to3/fixes/fix_renames.pyc
�
U��dc@sudZddlmZddlmZmZiidd6d6ZiZd�Zd�Z	d	ej
fd
��YZdS(s?Fix incompatible renames

Fixes:
  * sys.maxint -> sys.maxsize
i(t
fixer_base(tNamet
attr_chaintmaxsizetmaxinttsyscCsddjtt|��dS(Nt(t|t)(tjointmaptrepr(tmembers((s1/usr/lib64/python2.7/lib2to3/fixes/fix_renames.pyt
alternatessccsoxhtj�D]Z\}}xK|j�D]=\}}|t||f<d|||fVd||fVq&Wq
WdS(Ns�
                  import_from< 'from' module_name=%r 'import'
                      ( attr_name=%r | import_as_name< attr_name=%r 'as' any >) >
                  s^
                  power< module_name=%r trailer< '.' attr_name=%r > any* >
                  (tMAPPINGtitemstLOOKUP(tmoduletreplacetold_attrtnew_attr((s1/usr/lib64/python2.7/lib2to3/fixes/fix_renames.pyt
build_patterns

t
FixRenamescBs8eZeZdje��ZdZd�Zd�Z	RS(RtprecsUtt|�j��|�}|rQt�fd�t|d�D��rMtS|StS(Nc3s|]}�|�VqdS(N((t.0tobj(tmatch(s1/usr/lib64/python2.7/lib2to3/fixes/fix_renames.pys	<genexpr>5stparent(tsuperRRtanyRtFalse(tselftnodetresults((Rs1/usr/lib64/python2.7/lib2to3/fixes/fix_renames.pyR1s%cCsi|jd�}|jd�}|re|rett|j|jf�}|jt|d|j��ndS(Ntmodule_namet	attr_nametprefix(tgettunicodeRtvalueRRR$(RR R!tmod_nameR#R((s1/usr/lib64/python2.7/lib2to3/fixes/fix_renames.pyt	transform>s
(
t__name__t
__module__tTruet
BM_compatibleR	RtPATTERNtorderRR)(((s1/usr/lib64/python2.7/lib2to3/fixes/fix_renames.pyR*s
	
N(t__doc__tRt
fixer_utilRRRRR
RtBaseFixR(((s1/usr/lib64/python2.7/lib2to3/fixes/fix_renames.pyt<module>s		

ZeroDay Forums Mini