Information System : Linux apprendre2 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Disable Function : NONE
3
\ @ sr g Z d dlZd dlZddlmZ ejjjZejj Z ejj
Z
G dd deZdZdZ
dZd d
Zdd Zd
d ZdS ) N )eventsc @ s e Zd ZdZdS )InvalidStateErrorz+The operation is not allowed in this state.N)__name__
__module____qualname____doc__ r r $/usr/lib64/python3.6/base_futures.pyr
s r ZPENDINGZ CANCELLEDZFINISHEDc C s t | jdo| jdk S )zCheck for a Future.
This returns True when obj is a Future instance or is advertising
itself as duck-type compatible by setting _asyncio_future_blocking.
See comment in Future for more details.
_asyncio_future_blockingN)hasattr __class__r )objr r r
isfuture s r c C s t | }|sd} dd }|dkr.|| d } nP|dkrTdj|| d || d } n*|dkr~dj|| d |d || d
} d | S )z#helper function for Future.__repr__ c S s t j| f S )N)r Z_format_callback_source)callbackr r r
format_cb( s z$_format_callbacks..format_cbr r z{}, {}z{}, <{} more>, {}zcb=[%s])lenformat)cbsizer r r r
_format_callbacks" s r c C s | j j g}| j tkrP| jdk r4|jdj| j ntj| j}|jdj| | j rf|jt
| j | jr| jd }|jd|d |d f |S )z#helper function for Future.__repr__Nzexception={!r}z result={}r zcreated at %s:%sr r )Z_statelower _FINISHEDZ
_exceptionappendr reprlibreprZ_resultZ
_callbacksr Z_source_traceback)Zfutureinforesultframer r r
_future_repr_info6 s
r" )__all__Zconcurrent.futures._baseZ
concurrentr r r ZfuturesZ_baseErrorZCancelledErrorTimeoutErrorr Z_PENDINGZ
_CANCELLEDr r r r" r r r r
s