/opt/alt/python38/lib64/python3.8/asyncio/__pycache__
NameSizeModeActions
base_events.cpython-38.opt-1.pyc508090644editdlrm
base_events.cpython-38.opt-2.pyc418280644editdlrm
base_events.cpython-38.pyc510350644editdlrm
base_futures.cpython-38.opt-1.pyc19130644editdlrm
base_futures.cpython-38.opt-2.pyc16590644editdlrm
base_futures.cpython-38.pyc19130644editdlrm
base_subprocess.cpython-38.opt-1.pyc93350644editdlrm
base_subprocess.cpython-38.opt-2.pyc92350644editdlrm
base_subprocess.cpython-38.pyc94310644editdlrm
base_tasks.cpython-38.opt-1.pyc19590644editdlrm
base_tasks.cpython-38.opt-2.pyc19590644editdlrm
base_tasks.cpython-38.pyc19590644editdlrm
constants.cpython-38.opt-1.pyc5960644editdlrm
constants.cpython-38.opt-2.pyc5960644editdlrm
constants.cpython-38.pyc5960644editdlrm
coroutines.cpython-38.opt-1.pyc65840644editdlrm
coroutines.cpython-38.opt-2.pyc63520644editdlrm
coroutines.cpython-38.pyc66690644editdlrm
events.cpython-38.opt-1.pyc279640644editdlrm
events.cpython-38.opt-2.pyc189120644editdlrm
events.cpython-38.pyc280720644editdlrm
exceptions.cpython-38.opt-1.pyc25640644editdlrm
exceptions.cpython-38.opt-2.pyc19200644editdlrm
exceptions.cpython-38.pyc25640644editdlrm
format_helpers.cpython-38.opt-1.pyc23470644editdlrm
format_helpers.cpython-38.opt-2.pyc21030644editdlrm
format_helpers.cpython-38.pyc23470644editdlrm
futures.cpython-38.opt-1.pyc110310644editdlrm
futures.cpython-38.opt-2.pyc77250644editdlrm
futures.cpython-38.pyc112080644editdlrm
locks.cpython-38.opt-1.pyc163830644editdlrm
locks.cpython-38.opt-2.pyc97810644editdlrm
locks.cpython-38.pyc163830644editdlrm
log.cpython-38.opt-1.pyc2410644editdlrm
log.cpython-38.opt-2.pyc2020644editdlrm
log.cpython-38.pyc2410644editdlrm
proactor_events.cpython-38.opt-1.pyc238820644editdlrm
proactor_events.cpython-38.opt-2.pyc234820644editdlrm
proactor_events.cpython-38.pyc241600644editdlrm
protocols.cpython-38.opt-1.pyc86290644editdlrm
protocols.cpython-38.opt-2.pyc33700644editdlrm
protocols.cpython-38.pyc86290644editdlrm
queues.cpython-38.opt-1.pyc83960644editdlrm
queues.cpython-38.opt-2.pyc57170644editdlrm
queues.cpython-38.pyc83960644editdlrm
runners.cpython-38.opt-1.pyc19620644editdlrm
runners.cpython-38.opt-2.pyc12800644editdlrm
runners.cpython-38.pyc19620644editdlrm
selector_events.cpython-38.opt-1.pyc296400644editdlrm
selector_events.cpython-38.opt-2.pyc280060644editdlrm
selector_events.cpython-38.pyc297000644editdlrm
sslproto.cpython-38.opt-1.pyc214330644editdlrm
sslproto.cpython-38.opt-2.pyc146300644editdlrm
sslproto.cpython-38.pyc216330644editdlrm
staggered.cpython-38.opt-1.pyc39600644editdlrm
staggered.cpython-38.opt-2.pyc18270644editdlrm
staggered.cpython-38.pyc41330644editdlrm
streams.cpython-38.opt-1.pyc203800644editdlrm
streams.cpython-38.opt-2.pyc144860644editdlrm
streams.cpython-38.pyc206550644editdlrm
subprocess.cpython-38.opt-1.pyc73430644editdlrm
subprocess.cpython-38.opt-2.pyc72150644editdlrm
subprocess.cpython-38.pyc73730644editdlrm
tasks.cpython-38.opt-1.pyc242400644editdlrm
tasks.cpython-38.opt-2.pyc166540644editdlrm
tasks.cpython-38.pyc242960644editdlrm
transports.cpython-38.opt-1.pyc122470644editdlrm
transports.cpython-38.opt-2.pyc68460644editdlrm
transports.cpython-38.pyc122770644editdlrm
trsock.cpython-38.opt-1.pyc84980644editdlrm
trsock.cpython-38.opt-2.pyc82420644editdlrm
trsock.cpython-38.pyc84980644editdlrm
unix_events.cpython-38.opt-1.pyc389700644editdlrm
unix_events.cpython-38.opt-2.pyc343290644editdlrm
unix_events.cpython-38.pyc393510644editdlrm
windows_events.cpython-38.opt-1.pyc245660644editdlrm
windows_events.cpython-38.opt-2.pyc234590644editdlrm
windows_events.cpython-38.pyc245980644editdlrm
windows_utils.cpython-38.opt-1.pyc44020644editdlrm
windows_utils.cpython-38.opt-2.pyc39680644editdlrm
windows_utils.cpython-38.pyc44860644editdlrm
__init__.cpython-38.opt-1.pyc7650644editdlrm
__init__.cpython-38.opt-2.pyc7090644editdlrm
__init__.cpython-38.pyc7650644editdlrm
__main__.cpython-38.opt-1.pyc31510644editdlrm
__main__.cpython-38.opt-2.pyc31510644editdlrm
__main__.cpython-38.pyc31510644editdlrm
Edit: /opt/alt/python38/lib64/python3.8/asyncio/__pycache__/futures.cpython-38.opt-1.pyc (11031B)
U ,ab3@sdZdZddlZddlZddlZddlZddlmZddlm Z ddlm Z ddlm Z ej Z ej Z ejZejZejdZGd d d ZeZd d Zd dZddZddZddZddZddddZz ddlZWnek rYn XejZZdS)z.A Future class similar to the one in PEP 3148.)Future wrap_futureisfutureN) base_futures)events) exceptions)format_helpersc@seZdZdZeZdZdZdZdZ dZ dZ ddddZ e jZddZd d Zed d Zejd d ZddZddZddZddZddZddZddZddddZdd Zd!d"Zd#d$Zd%d&Z e Z!dS)'ra,This class is *almost* compatible with concurrent.futures.Future. Differences: - This class is not thread-safe. - result() and exception() do not take a timeout argument and raise an exception when the future isn't done yet. - Callbacks registered with add_done_callback() are always called via the event loop's call_soon(). - This class is not compatible with the wait() and as_completed() methods in the concurrent.futures package. (In Python 3.4 or later we may be able to unify the implementations.) NFloopcCs@|dkrt|_n||_g|_|jr )format __class____name__join _repr_inforrrr__repr__Vs  zFuture.__repr__cCsF|js dS|j}|jjd||d}|jr6|j|d<|j|dS)Nz exception was never retrieved)message exceptionfutureZsource_traceback)_Future__log_traceback _exceptionrrrr Zcall_exception_handler)rexccontextrrr__del__Zs  zFuture.__del__cCs|jSN)r#rrrr_log_tracebackjszFuture._log_tracebackcCst|rtdd|_dS)Nz'_log_traceback can only be set to FalseF)bool ValueErrorr#)rvalrrrr)nscCs|j}|dkrtd|S)z-Return the event loop the Future is bound to.Nz!Future object is not initialized.)r RuntimeErrorrrrrget_looptszFuture.get_loopcCs&d|_|jtkrdSt|_|dS)zCancel the future and schedule callbacks. If the future is already done or cancelled, return False. Otherwise, change the future's state to cancelled, schedule the callbacks and return True. FT)r#_state_PENDING _CANCELLED_Future__schedule_callbacksrrrrcancel{s  z Future.cancelcCsH|jdd}|sdSg|jdd<|D]\}}|jj|||dq(dS)zInternal: Ask the event loop to call all callbacks. The callbacks are scheduled to be called as soon as possible. Also clears the callback list. Nr&)rr call_soon)rZ callbackscallbackctxrrrZ__schedule_callbackss  zFuture.__schedule_callbackscCs |jtkS)z(Return True if the future was cancelled.)r/r1rrrr cancelledszFuture.cancelledcCs |jtkS)zReturn True if the future is done. Done means either that a result / exception are available, or that the future was cancelled. )r/r0rrrrdonesz Future.donecCs@|jtkrtj|jtkr$tdd|_|jdk r:|j|jS)aReturn the result this future represents. If the future has been cancelled, raises CancelledError. If the future's result isn't yet available, raises InvalidStateError. If the future is done and has an exception set, this exception is raised. zResult is not ready.FN) r/r1rCancelledError _FINISHEDInvalidStateErrorr#r$_resultrrrrresults    z Future.resultcCs0|jtkrtj|jtkr$tdd|_|jS)a&Return the exception that was set on this future. The exception (or None if no exception was set) is returned only if the future is done. If the future has been cancelled, raises CancelledError. If the future isn't done yet, raises InvalidStateError. zException is not set.F)r/r1rr:r;r<r#r$rrrrr!s    zFuture.exceptionr4cCsB|jtkr|jj|||dn |dkr.t}|j||fdS)zAdd a callback to be run when the future becomes done. The callback is called with a single argument - the future object. If the future is already done when this is called, the callback is scheduled with call_soon. r4N)r/r0r r5 contextvarsZ copy_contextrappend)rfnr&rrradd_done_callbacks  zFuture.add_done_callbackcs<fdd|jD}t|jt|}|r8||jdd<|S)z}Remove all instances of a callback from the "call when done" list. Returns the number of callbacks removed. cs g|]\}}|kr||fqSrr).0fr7rArr sz/Future.remove_done_callback..N)rlen)rrAZfiltered_callbacksZ removed_countrrErremove_done_callbacks zFuture.remove_done_callbackcCs8|jtkr t|jd|||_t|_|dS)zMark the future done and set its result. If the future is already done when this method is called, raises InvalidStateError. : N)r/r0rr<r=r;r2)rr>rrr set_results  zFuture.set_resultcCsb|jtkr t|jd|t|tr0|}t|tkrDtd||_t |_| d|_ dS)zMark the future done and set an exception. If the future is already done when this method is called, raises InvalidStateError. rIzPStopIteration interacts badly with generators and cannot be raised into a FutureTN) r/r0rr< isinstancetype StopIteration TypeErrorr$r;r2r#)rr!rrr set_exceptions   zFuture.set_exceptionccs,|sd|_|V|s$td|S)NTzawait wasn't used with future)r9_asyncio_future_blockingr-r>rrrr __await__s zFuture.__await__)"r __module__ __qualname____doc__r0r/r=r$r rrPr#rrZ_future_repr_inforrr'propertyr)setterr.r3r2r8r9r>r!rBrHrJrOrQ__iter__rrrrrs:    rcCs,z |j}Wntk rYnX|S|jSr()r.AttributeErrorr )futr.rrr _get_loops  rZcCs|r dS||dS)z?Helper setting the result only if the future was not cancelled.N)r8rJ)rYr>rrr_set_result_unless_cancelledsr[cCsXt|}|tjjkr tj|jS|tjjkr8tj|jS|tjjkrPtj|jS|SdSr()rL concurrentfuturesr:rargs TimeoutErrorr<)r%Z exc_classrrr_convert_future_exc#s      r`cCsR|r||sdS|}|dk r<|t|n|}||dS)z8Copy state from a future to a concurrent.futures.Future.N)r8r3Zset_running_or_notify_cancelr!rOr`r>rJ)r\sourcer!r>rrr_set_concurrent_future_state/srbcCsT|r dS|r|n2|}|dk r>|t|n|}||dS)zqInternal helper to copy state from another Future. The other Future may be a concurrent.futures.Future. N)r8r3r!rOr`r>rJ)radestr!r>rrr_copy_future_state>s rdcststtjjstdts._set_statecs2|r.dkskr"n jdSr()r8r3call_soon_threadsafe) destination) dest_loopra source_looprr_call_check_cancelhs z)_chain_future.._call_check_cancelcsJrdk rrdSdks,kr8|n|dSr()r8Z is_closedrg)ra)rfrirhrjrr_call_set_stateos z&_chain_future.._call_set_state)rrKr\r]rrNrZrB)rarhrkrlr)rfrirhrarjr _chain_futureRs   rmr cCs2t|r |S|dkrt}|}t|||S)z&Wrap concurrent.futures.Future object.N)rrr Z create_futurerm)r"r Z new_futurerrrr|s r)rT__all__Zconcurrent.futuresr\r?Zloggingrrrrr rr0r1r;DEBUGZ STACK_DEBUGrZ _PyFuturerZr[r`rbrdrmrZ_asyncio ImportErrorZ_CFuturerrrrs:     q  *