WcndZddlmZddlmZmZdddiiZiZdZdZ Gd d ejZ d S) z?Fix incompatible renames Fixes: * sys.maxint -> sys.maxsize ) fixer_base)Name attr_chainsysmaxintmaxsizecTddjtt|zdzS)N(|))joinmaprepr)memberss 2/usr/lib64/python3.12/lib2to3/fixes/fix_renames.py alternatesrs" #dG,- - 33c #KttjD]M\}}t|jD]*\}}|t||f<d|d|d|dd|d|d,OdS)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* > )listMAPPINGitemsLOOKUP)modulereplaceold_attrnew_attrs r build_patternrs 0++"&w}}"7 + + Hh)1FFH% & & 8885 5 5 5 5  + + + + + +++rc\eZdZdZdj eZdZfdZdZ xZ S) FixRenamesTr prectt|j|}|r'tfdt |dDrdS|SdS)Nc3,K|] }|dS)N).0objmatchs r z#FixRenames.match..5s%DD#55:::::DDrparentF)superrr&anyr)selfnoderesultsr& __class__s @rr&zFixRenames.match1sYj$'--%+ 7DDDDD()CDDDDuNurc|jd}|jd}|rR|rNt|j|jf}|jt ||j dSdSdS)N module_name attr_name)prefix)getrvaluerrr2)r+r,r-mod_namer1rs r transformzFixRenames.transform>sr;;}-KK ,  8 x~~y?@H   d8I4D4DEE F F F F" 88r) __name__ __module__ __qualname__ BM_compatibler rPATTERNorderr&r6 __classcell__)r.s@rrr*sjMhh}}'G EGGGGGGGrrN) __doc__r fixer_utilrrrrrrBaseFixrr#rrrBs)))))))) Hy)  444+++*GGGGG##GGGGr