File "coroutines.cpython-35.opt-1.pyc"

Full Path: /home/attunedd/public_html/byp/izo/con7ext_sym404/rintoar.txt/opt/alt/python35/lib64/python3.5/asyncio/__pycache__/coroutines.cpython-35.opt-1.pyc
File size: 8.77 KB
MIME-type: text/x-bytecode.python
Charset: 8 bit



Yf)@s(dddgZddlZddlZddlZddlZddlZddlZddlZddlm	Z	ddlm
Z
ddlmZdd	lm
Z
ejd
ZejjoeejjdZyejZejZWnek
rdZdZYnXy
ejZWnek
r9dd
ZYnXyddlmZm Z!Wne"k
rrdZZ!YnXddZ#e#Z$[#ddZ%GdddZ&ddZe'Z(ddZej)e&fZ*edk	re*ef7Z*edk	refe*Z*ddZ+ddZ,dS)	coroutineiscoroutinefunctioniscoroutineN)compat)events)futures)loggerZ
YIELD_FROMZPYTHONASYNCIODEBUGcCsdS)NF)funcr
r
7/opt/alt/python35/lib64/python3.5/asyncio/coroutines.py<lambda>.sr
)	Coroutine	AwaitablecCsaGddd}dd}d}|}||}t||j||j|fkS)	Nc@s@eZdZddZddZddZddZd	S)
z!has_yield_from_bug.<locals>.MyGencSs
d|_dS)N)	send_args)selfr
r
r__init__:sz*has_yield_from_bug.<locals>.MyGen.__init__cSs|S)Nr
)rr
r
r__iter__<sz*has_yield_from_bug.<locals>.MyGen.__iter__cSsdS)N*r
)rr
r
r__next__>sz*has_yield_from_bug.<locals>.MyGen.__next__cWs
||_dS)N)r)rZwhatr
r
rsend@s	z&has_yield_from_bug.<locals>.MyGen.sendN)__name__
__module____qualname__rrrrr
r
r
rMyGen9srcss
|EdHdS)Nr
)genr
r
ryield_from_genCsz*has_yield_from_bug.<locals>.yield_from_genr)rrr)nextrr)rrvaluercoror
r
rhas_yield_from_bug8s
	

r"cCs
t|dS)N)CoroWrapper)rr
r
r
debug_wrapperOsr$c@s3eZdZdddZddZddZdd	ZerTd
dZnddZddd
dZ	ddZ
eddZeddZ
eddZejr#ddZeddZeddZeddZedd Zed!d"Zd#d$ZdS)%r#NcCs[||_||_tjtjd|_t|dd|_t|dd|_	dS)Nrrr)
rr	traceback
extract_stacksys	_getframe_source_tracebackgetattrrr)rrrr
r
rrZs
		zCoroWrapper.__init__cCsRt|}|jr>|jd}|d|d|df7}d|jj|fS)Nrz, created at %s:%srz<%s %s>)_format_coroutiner)	__class__r)r	coro_reprframer
r
r__repr__bs
	
zCoroWrapper.__repr__cCs|S)Nr
)rr
r
rriszCoroWrapper.__iter__cCs|jjdS)N)rr)rr
r
rrlszCoroWrapper.__next__cGsHtj}|j}|jj|jtkr8|d}|jj|S)Nr)	r'r(f_backf_codeco_codef_lasti_YIELD_FROMrr)rr r/Zcallerr
r
rrts
	
zCoroWrapper.sendcCs|jj|S)N)rr)rr r
r
rr|scCs|jj|||S)N)rthrow)rtyper r%r
r
rr6szCoroWrapper.throwcCs
|jjS)N)rclose)rr
r
rr8szCoroWrapper.closecCs
|jjS)N)rgi_frame)rr
r
rr9szCoroWrapper.gi_framecCs
|jjS)N)r
gi_running)rr
r
rr:szCoroWrapper.gi_runningcCs
|jjS)N)rgi_code)rr
r
rr;szCoroWrapper.gi_codecCs@t|jdd}|dk	r<tdj|j||S)Ncr_awaitz;Cannot await on coroutine {!r} while it's awaiting for {!r})r*rRuntimeErrorformat)rr<r
r
r	__await__szCoroWrapper.__await__cCs
|jjS)N)rgi_yieldfrom)rr
r
rr@szCoroWrapper.gi_yieldfromcCs
|jjS)N)rr<)rr
r
rr<szCoroWrapper.cr_awaitcCs
|jjS)N)r
cr_running)rr
r
rrAszCoroWrapper.cr_runningcCs
|jjS)N)rcr_code)rr
r
rrBszCoroWrapper.cr_codecCs
|jjS)N)rcr_frame)rr
r
rrCszCoroWrapper.cr_framecCst|dd}t|dd}|dkrBt|dd}|dk	r|jd	krd|}t|df}|rdjtj|}|d7}||j7}tj|dS)
Nrr9rCrz%r was never yielded fromr)z6
Coroutine object created at (most recent call last):
r+)r*r4joinr%format_listrstripr	error)rrr/msgtbr
r
r__del__s

zCoroWrapper.__del__)rrrrr0rr_YIELD_FROM_BUGrr6r8propertyr9r:r;rZPY35r?r@r<rArBrCrKr
r
r
rr#Ws(	r#cstrStjr(n!tjfddtsstdkrd}qt}n$tjfdd}t|_|S)zDecorator to mark coroutines.

    If the coroutine is not yielded from before it is destroyed,
    an error message is logged.
    c?s||}tj|s<tj|s<t|trJ|EdH}nKtdk	ry
|j}Wntk
rwYnXt|tr|EdH}|S)N)	rZisfutureinspectZisgenerator
isinstancer#
_AwaitableABCr?AttributeError)argskwresZ
await_meth)rr
rr!s

zcoroutine.<locals>.coroNcs\t||d}|jr.|jd=tdd|_tdd|_|S)Nrrrrr+)r#r)r*rr)rRkwdsw)r!rr
rwrappers	
zcoroutine.<locals>.wrapper)_inspect_iscoroutinefunctionrNisgeneratorfunction	functoolswraps_DEBUG_types_coroutine
_is_coroutine)rrWr
)r!rrrs	!	$
	cCs"t|ddtkp!t|S)z6Return True if func is a decorated coroutine function.r^N)r*r^rX)rr
r
rrscCs
t|tS)z)Return True if obj is a coroutine object.)rO_COROUTINE_TYPES)objr
r
rrsc
"Csft|drt|drt|dt|dt|j}dj|}d}y
|j}Wn4tk
ry
|j}Wntk
rYnXYnX|rdj|S|Sd}t|t	r|j
}|j}|dk	rdj|}n|}|dkr#tj
|fi}y
|j}Wntk
rM|j}YnXy
|j}Wntk
rx|j}YnX|j}d}t|t	rtj|j
r|j
dk	rtj|j
}|dk	r|\}}|dkrd	|||f}	qbd
|||f}	nG|dk	rF|j}d|||f}	n|j}d	|||f}	|	S)NrBr;rrz{}()Fz
{} runningrz%s done, defined at %s:%sz%s running, defined at %s:%sz%s running at %s:%s)hasattrr*r7rr>rArQr:rOr#rrrZ_format_callbackr;rBr9rCco_filenamerNrYZ_get_function_sourcef_linenoco_firstlineno)
r!Z	coro_nameZrunningrZ	coro_codeZ
coro_framefilenamelinenosourcer.r
r
rr,sl 





		



			r,)-__all__rZrNZopcodeosr'r%typesrDrrrlogr	Zopmapr5flagsignore_environmentboolenvirongetr\rr]
CoroutineTypeZ_types_CoroutineTyperQrrXcollections.abcrZ
_CoroutineABCrrPImportErrorr"rLr$r#objectr^
GeneratorTyper_rr,r
r
r
r<module>sX

	




	i: