Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
ó
 ‹EYc@s”ddlZddlZddlZddlmZddlmZddddgZe	ƒZ
defd„ƒYZd	„Z
d
„Zd„ZdS(iÿÿÿÿN(t	greenlets(tget_hubtTimeouttwith_timeouttwrap_is_timeoutt
is_timeoutcBsqeZdZd
d
d„Zd„Zed„ƒZd„Zd„Z	d„Z
d„Zd„Zed	„ƒZ
RS(s.Raises *exception* in the current greenthread after *timeout* seconds.

    When *exception* is omitted or ``None``, the :class:`Timeout` instance
    itself is raised. If *seconds* is None, the timer is not scheduled, and is
    only useful if you're planning to raise it directly.

    Timeout objects are context managers, and so can be used in with statements.
    When used in a with statement, if *exception* is ``False``, the timeout is
    still raised, but the context manager suppresses it, so the code outside the
    with-block won't see it.
    cCs)||_||_d|_|jƒdS(N(tsecondst	exceptiontNonettimertstart(tselfRR((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyt__init__3s			cCs®|jstd|ƒ‚|jdkr5d|_nu|jdksVt|jtƒr€tƒj	|jt
jƒj|ƒ|_n*tƒj	|jt
jƒj|jƒ|_|S(s‘Schedule the timeout.  This is called on construction, so
        it should not be called explicitly, unless the timer has been
        canceled.s5%r is already started; to restart it, cancel it firstN(
tpendingtAssertionErrorRRR	Rt
isinstancetboolRtschedule_call_globaltgreenlett
getcurrenttthrow(R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyR
9s

!	!	!cCs!|jdk	r|jjStSdS(s.True if the timeout is scheduled to be raised.N(R	RR
tFalse(R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyR
Is
cCs,|jdk	r(|jjƒd|_ndS(s2If the timeout is pending, cancel it.  If not using
        Timeouts in ``with`` statements, always call cancel() in a
        ``finally`` after the block of code that is getting timed out.
        If not canceled, the timeout will be raised later on, in some
        unexpected section of the application.N(R	Rtcancel(R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyRQs
cCso|jj}|jrd}nd}|jdkr<d}n
d|j}d|tt|ƒƒ|j||fS(Ns pendingts
 exception=%rs<%s at %s seconds=%s%s%s>(t	__class__t__name__R
RRthextidR(Rt	classnameR
R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyt__repr__[s			
cCs›|jdkrdS|jdkr+d}nd}|jdksO|jtkr`d|j|fS|jtkr€d|j|fSd|j||jfSdS(s“
        >>> raise Timeout  # doctest: +IGNORE_EXCEPTION_DETAIL
        Traceback (most recent call last):
            ...
        Timeout
        Ritss%s second%ss%s second%s (silent)s%s second%s (%s)N(RRRtTrueR(Rtsuffix((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyt__str__hs	cCs |jdkr|jƒn|S(N(R	RR
(R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyt	__enter__|s
cCs-|jƒ||kr)|jtkr)tSdS(N(RRRR(Rttyptvaluettb((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyt__exit__s
cCstS(N(R(R((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyR†sN(Rt
__module__t__doc__RRR
tpropertyR
RRR!R"R&R(((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyR&s		
	
			cOsz|jdtƒ}t|ƒ}zJy|||ŽSWn2tk
rf}||kr`|tk	r`|S‚nXWd|jƒXdS(s¢Wrap a call to some (yielding) function with a timeout; if the called
    function fails to return before the timeout, cancel it and return a flag
    value.
    t
timeout_valueN(tpopt_MISSINGRR(RtfunctiontargstkwdsR*ttimeouttex((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyR‹scsGtjˆƒr%td„ƒˆ_ˆStjˆƒ‡fd†ƒ}|S(s#Adds `.is_timeout=True` attribute to objects returned by `base()`.

    When `base` is class, attribute is added as read-only property. Returns `base`.
    Otherwise, it returns a function that sets attribute on result of `base()` call.

    Wrappers make best effort to be transparent.
    cSstS(N(R(t_((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyt<lambda>¦scsˆ||Ž}t|_|S(N(RR(R.tkwargsR1(tbase(sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pytfun©s	(tinspecttisclassR)Rt	functoolstwraps(R5R6((R5sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyRs
cCs7ttdtƒ}tt|dtƒƒp6t||ƒS(NtTimeoutErrorR(tgetattrt__builtins__RRRR(tobjtpy3err((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyR±s(R9R7teventletteventlet.supportRRt
eventlet.hubsRt__all__tobjectR,t
BaseExceptionRRRR(((sE/home/tvault/.virtenv/lib/python2.7/site-packages/eventlet/timeout.pyt<module>s	e