Prv8 Shell
Server : Apache/2.2.22 (Unix) mod_ssl/2.2.22 OpenSSL/1.0.0-fips mod_auth_passthrough/2.1 mod_bwlimited/1.4
System : Linux server.jackjohnson.com 2.6.32-279.5.2.el6.x86_64 #1 SMP Fri Aug 24 01:07:11 UTC 2012 x86_64
User : jackjohn ( 502)
PHP Version : 5.3.17
Disable Function : NONE
Directory :  /usr/lib64/python2.6/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.6/contextlib.pyo
Ñò
§ÚêLc@sydZddkZddklZdddgZdefd„ƒYZd	„Zed
„ƒZdefd„ƒYZ	dS(s4Utilities for with-statement contexts.  See PEP 343.iÿÿÿÿN(twrapstcontextmanagertnestedtclosingtGeneratorContextManagercBs)eZdZd„Zd„Zd„ZRS(s%Helper for @contextmanager decorator.cCs
||_dS(N(tgen(tselfR((s"/usr/lib64/python2.6/contextlib.pyt__init__scCs7y|iiƒSWntj
otdƒ‚nXdS(Nsgenerator didn't yield(Rtnextt
StopIterationtRuntimeError(R((s"/usr/lib64/python2.6/contextlib.pyt	__enter__scCsÌ|djo8y|iiƒWntj
odSXtdƒ‚n„|djo
|ƒ}ny&|ii|||ƒtdƒ‚Wn@tj
o}||j	Stiƒd|j	o‚qÈnXdS(Nsgenerator didn't stops#generator didn't stop after throw()i(tNoneRRR	R
tthrowtsystexc_info(Rttypetvaluet	tracebacktexc((s"/usr/lib64/python2.6/contextlib.pyt__exit__s 


(t__name__t
__module__t__doc__RRR(((s"/usr/lib64/python2.6/contextlib.pyRs		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(s"/usr/lib64/python2.6/contextlib.pythelperQs(R(RR((Rs"/usr/lib64/python2.6/contextlib.pyR5scgsòg}g}d}zcyIx=|D]5}|i}|i}|i|ƒƒ|i|ƒqW|VWntiƒ}nXWdxI|oA|iƒ}y||Œo
d}nWq{tiƒ}q{Xq{W|djo|d|d|d‚nXdS(sSupport multiple context managers in a single with-statement.

    Code like this:

        with nested(A, B, C) as (X, Y, Z):
            <body>

    is equivalent to this:

        with A as X:
            with B as Y:
                with C as Z:
                    <body>

    Niii(NNN(NNN(NNN(RRRtappendRRtpop(tmanagerstexitstvarsRtmgrtexittenter((s"/usr/lib64/python2.6/contextlib.pyRWs0			

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$((s"/usr/lib64/python2.6/contextlib.pyR”scCs|iS(N(R$(R((s"/usr/lib64/python2.6/contextlib.pyR–scGs|iiƒdS(N(R$tclose(RR((s"/usr/lib64/python2.6/contextlib.pyR˜s(RRRRRR(((s"/usr/lib64/python2.6/contextlib.pyRƒs		(
RRt	functoolsRt__all__tobjectRRRR(((s"/usr/lib64/python2.6/contextlib.pyt<module>s-	",

haha - 2025