ACC SHELL

Path : /usr/lib/python/compiler/
File Upload :
Current File : //usr/lib/python/compiler/future.pyc

Ñò
rÄMc@sÓdZddklZlZd„Zdd
d„ƒYZddd„ƒYZd„Zed	jondd
k	Z	ddkl
Z
lZxIe	idD]6ZeGHe
eƒZ
eƒZee
eƒeiGHHq‘Wnd
S(sParser for future statements

iÿÿÿÿ(tasttwalkcCs5t|tiƒpdS|idjodSdSdS(s:Return true if statement is a well-formed future statementit
__future__iN(t
isinstanceRtFromtmodname(tstmt((s%/usr/lib/python2.6/compiler/future.pyt	is_futures
tFutureParsercBs2eZdZd„Zd„Zd	„Zd
„ZRS(t
nested_scopest
generatorstdivisiontabsolute_importtwith_statementtprint_functiontunicode_literalscCs
h|_dS(N(tfound(tself((s%/usr/lib/python2.6/compiler/future.pyt__init__scCs6|i}x&|iD]}|i|ƒpPqqWdS(N(tnodetnodest
check_stmt(RRRts((s%/usr/lib/python2.6/compiler/future.pytvisitModules
	
cCsgt|ƒoVxE|iD]:\}}||ijod|i|<qtd|‚qWd|_dSdS(Nis future feature %s is not definedi(RtnamestfeaturesRtSyntaxErrortvalid_future(RRtnametasname((s%/usr/lib/python2.6/compiler/future.pyRs

	cCs
|iiƒS(s4Return list of features enabled by future statements(Rtkeys(R((s%/usr/lib/python2.6/compiler/future.pytget_features+s(R	R
RRR
RR(t__name__t
__module__RRRRR(((s%/usr/lib/python2.6/compiler/future.pyRs			tBadFutureParsercBseZdZd„ZRS(s#Check for invalid future statementscCsAt|dƒodS|idjodStdt|ƒ‚dS(NRRsinvalid future statement (thasattrRRtrepr(RR((s%/usr/lib/python2.6/compiler/future.pyt	visitFrom2s
(R R!t__doc__R%(((s%/usr/lib/python2.6/compiler/future.pyR"/scCs6tƒ}tƒ}t||ƒt||ƒ|iƒS(N(RR"RR(Rtp1tp2((s%/usr/lib/python2.6/compiler/future.pytfind_futures9s
		

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


ACC SHELL 2018