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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
L\¬Qc@s‰dZddlZddlmZddlmZdddgZdefd    „ƒYZd
„Z    e    d „ƒZ
defd „ƒYZ dS( s4Utilities for with-statement contexts.  See PEP 343.iÿÿÿÿN(twraps(twarntcontextmanagertnestedtclosingtGeneratorContextManagercBs)eZdZd„Zd„Zd„ZRS(s%Helper for @contextmanager decorator.cCs ||_dS(N(tgen(tselfR((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyt__init__ scCs5y|jjƒSWntk
r0tdƒ‚nXdS(Nsgenerator didn't yield(Rtnextt StopIterationt RuntimeError(R((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyt    __enter__s cCsÂ|dkrAy|jjƒWntk
r1dSXtdƒ‚n}|dkrY|ƒ}ny&|jj|||ƒtdƒ‚Wn<tk
r›}||k    Stjƒd|k    r¾‚q¾nXdS(Nsgenerator didn't stops#generator didn't stop after throw()i(tNoneRR    R
R tthrowtsystexc_info(Rttypetvaluet    tracebacktexc((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyt__exit__s     
(t__name__t
__module__t__doc__RR R(((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyR    s        cstˆƒ‡fd†ƒ}|S(sÜ@contextmanager decorator.
 
    Typical usage:
 
        @contextmanager
        def some_generator(<arguments>):
            <setup>
            try:
                yield <value>
            finally:
                <cleanup>
 
    This makes this:
 
        with some_generator(<arguments>) as <variable>:
            <body>
 
    equivalent to this:
 
        <setup>
        try:
            <variable> = <value>
            <body>
        finally:
            <cleanup>
 
    cstˆ||ŽƒS(N(R(targstkwds(tfunc(sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pythelperRs(R(RR((RsR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyR6scgsütdtdƒg}g}d}zcyIx=|D]5}|j}|j}|j|ƒƒ|j|ƒq/W|VWntjƒ}nXWdxE|rÏ|jƒ}y||Œrµd}nWq‹tjƒ}q‹Xq‹W|d    kr÷|d|d|d‚nXdS(
sµCombine multiple context managers into a single nested context manager.
 
   This function has been deprecated in favour of the multiple manager form
   of the with statement.
 
   The one advantage of this function over the multiple manager form of the
   with statement is that argument unpacking allows it to be
   used with a variable number of context managers as follows:
 
      with nested(*managers):
          do_something()
 
    s>With-statements now directly support multiple context managersiNiii(NNN(NNN(NNN(    RtDeprecationWarningR RR tappendRRtpop(tmanagerstexitstvarsRtmgrtexittenter((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyRXs0
                     cBs)eZdZd„Zd„Zd„ZRS(s2Context to automatically close something at the end of a block.
 
    Code like this:
 
        with closing(<module>.open(<arguments>)) as f:
            <block>
 
    is equivalent to this:
 
        f = <module>.open(<arguments>)
        try:
            <block>
        finally:
            f.close()
 
    cCs ||_dS(N(tthing(RR&((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyR•scCs|jS(N(R&(R((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyR —scGs|jjƒdS(N(R&tclose(RR((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyR™s(RRRRR R(((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyR„s        ( RRt    functoolsRtwarningsRt__all__tobjectRRRR(((sR/tmp/ndk-User/buildhost/install/prebuilt/darwin-x86_64/lib/python2.7/contextlib.pyt<module>s -    ",