tzh
2024-08-22 c7d0944258c7d0943aa7b2211498fd612971ce27
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
V\¬Qc@sÑdZddlmZmZd„Zdd d„ƒYZddd„ƒYZd„Zed    krÍdd
l    Z    dd lm
Z
mZxHe    j d D]6Z e GHe
e ƒZ eƒZee eƒejGHHqWnd
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((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyt    is_futures
t FutureParsercBs2eZd Zd„Zd„Zd    „Zd
„ZRS( t nested_scopest
generatorstdivisiontabsolute_importtwith_statementtprint_functiontunicode_literalscCs i|_dS(N(tfound(tself((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyt__init__scCs4|j}x$|jD]}|j|ƒsPqqWdS(N(tnodetnodest
check_stmt(RRRts((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyt visitModules    cCsct|ƒr_xC|jD]8\}}||jkrAd|j|<qtd|‚qWd|_dSdS(Nis future feature %s is not definedi(RtnamestfeaturesRt SyntaxErrort valid_future(RRtnametasname((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyRs     cCs |jjƒS(s4Return list of features enabled by future statements(Rtkeys(R((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyt get_features+s(R    R
R R R RR(t__name__t
__module__RRRRR(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/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((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyt    visitFrom2s
(R R!t__doc__R%(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyR"/scCs6tƒ}tƒ}t||ƒt||ƒ|jƒS(N(RR"RR(Rtp1tp2((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyt find_futures9s
          t__main__N(t    parseFileRi(((R&tcompilerRRRRR"R)R tsysR+targvtfilettreetvR(((sW/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/compiler/future.pyt<module>s