ó p”þfc@sudZddlmZddlmZmZiidd6d6ZiZd„Zd„Z d ej fd „ƒYZ d S( 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) > 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 5stparent(tsuperRRtanyRtFalse(tselftnodetresults((Rs1/usr/lib64/python2.7/lib2to3/fixes/fix_renames.pyR1s %cCsi|jdƒ}|jdƒ}|re|rett|j|jfƒ}|jt|d|jƒƒndS(Nt module_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.pyts