grthtrhthjhtyjytjytkergtrhtrjytjerhrfh4:24 29/09/2026a ´i­ã@sVdZddlmZddlmZmZdddiiZiZdd„Zd d „Z Gd d „d ej ƒZ d 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ú1/usr/lib64/python3.9/lib2to3/fixes/fix_renames.pyÚ alternatessrccsZtt ¡ƒD]H\}}t| ¡ƒD]2\}}|t||f<d|||fVd||fVq q dS)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‰ˆ|ƒ}|r5óz#FixRenames.match..ÚparentF)ÚsuperrrÚanyr)ÚselfÚnodeÚresults©Ú __class__rrr1s zFixRenames.matchcCsD| d¡}| d¡}|r@|r@t|j|jf}| t||jd�¡dS)NÚ module_nameÚ attr_name)Úprefix)ÚgetrÚvaluerrr+)r$r%r&Úmod_namer*rrrrÚ transform>s   zFixRenames.transform) Ú__name__Ú __module__Ú __qualname__Z BM_compatibler rZPATTERNÚorderrr/Ú __classcell__rrr'rr*s   rN) Ú__doc__ÚrZ fixer_utilrrrrrrZBaseFixrrrrrÚs