%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/local/lib/python2.7/compiler/
Upload File :
Create Path :
Current File : //usr/local/lib/python2.7/compiler/future.pyo

ó
Oêáac@sÑdZddlmZmZd„Zdd
d„ƒYZddd„ƒYZd„Zed	krÍdd
l	Z	ddlm
Z
mZxHe	jdD]6ZeGHe
eƒZ
eƒZee
eƒejGHHqWnd
S(sParser for future statements

iÿÿÿÿ(tasttwalkcCs1t|tjƒsdS|jdkr)dSdSdS(s:Return true if statement is a well-formed future statementit
__future__iN(t
isinstanceRtFromtmodname(tstmt((s+/usr/local/lib/python2.7/compiler/future.pyt	is_futures
tFutureParsercBs2eZdZd„Zd„Zd	„Zd
„ZRS(t
nested_scopest
generatorstdivisiontabsolute_importtwith_statementtprint_functiontunicode_literalscCs
i|_dS(N(tfound(tself((s+/usr/local/lib/python2.7/compiler/future.pyt__init__scCs4|j}x$|jD]}|j|ƒsPqqWdS(N(tnodetnodest
check_stmt(RRRts((s+/usr/local/lib/python2.7/compiler/future.pytvisitModules	cCsct|ƒr_xC|jD]8\}}||jkrAd|j|<qtd|‚qWd|_dSdS(Nis future feature %s is not definedi(RtnamestfeaturesRtSyntaxErrortvalid_future(RRtnametasname((s+/usr/local/lib/python2.7/compiler/future.pyRs	cCs
|jjƒS(s4Return list of features enabled by future statements(Rtkeys(R((s+/usr/local/lib/python2.7/compiler/future.pytget_features+s(R	R
RRR
RR(t__name__t
__module__RRRRR(((s+/usr/local/lib/python2.7/compiler/future.pyRs			tBadFutureParsercBseZdZd„ZRS(s#Check for invalid future statementscCs=t|dƒrdS|jdkr&dStdt|ƒ‚dS(NRRsinvalid future statement (thasattrRRtrepr(RR((s+/usr/local/lib/python2.7/compiler/future.pyt	visitFrom2s
(R R!t__doc__R%(((s+/usr/local/lib/python2.7/compiler/future.pyR"/scCs6tƒ}tƒ}t||ƒt||ƒ|jƒS(N(RR"RR(Rtp1tp2((s+/usr/local/lib/python2.7/compiler/future.pytfind_futures9s
		

t__main__N(t	parseFileRi(((R&tcompilerRRRRR"R)R tsysR+targvtfilettreetvR(((s+/usr/local/lib/python2.7/compiler/future.pyt<module>s		
		


Zerion Mini Shell 1.0