• File: base_futures.cpython-37.opt-1.pyc
  • Full Path: /home3/farmfre2/public_html/ALFA_DATA/alfasymlink/root/proc/self/root/opt/alt/python37/lib64/python3.7/asyncio/__pycache__/base_futures.cpython-37.opt-1.pyc
  • Date Modified: 10/26/2026 8:08 PM
  • File size: 2.05 KB
  • MIME-type: text/x-bytecode.python
  • Charset: 8 bit
B

Lj!@srdZddlZddlZddlmZejjjZejj	Z	ejj
Z
GdddeZdZdZ
d	Zd
dZdd
ZddZdS)N)format_helpersc@seZdZdZdS)InvalidStateErrorz+The operation is not allowed in this state.N)__name__
__module____qualname____doc__rrr9/opt/alt/python37/lib64/python3.7/asyncio/base_futures.pyr
srZPENDINGZ	CANCELLEDZFINISHEDcCst|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)objrrr
isfuturesrcCst|}|sd}dd}|dkr2||dd}n`|dkr`d||dd||dd}n2|dkrd||dd|d||d	d}d
|dS)z#helper function for Future.__repr__cSst|dS)Nr)rZ_format_callback_source)callbackrrr
	format_cb(sz$_format_callbacks.<locals>.format_cbrrz{}, {}z{}, <{} more>, {}zcb=[])lenformat)cbsizerrrr
_format_callbacks"s&rcCs|jg}|jtkrP|jdk	r4|d|jnt|j}|d||jrf|t	|j|j
r|j
d}|d|dd|d|S)	z#helper function for Future.__repr__Nz
exception=zresult=rzcreated at r:r)Z_statelower	_FINISHEDZ
_exceptionappendreprlibreprZ_resultZ
_callbacksrZ_source_traceback)Zfutureinforesultframerrr
_future_repr_info6s


r$)__all__Zconcurrent.futures._baseZ
concurrentrrrZfuturesZ_baseErrorZCancelledErrorTimeoutErrorrZ_PENDINGZ
_CANCELLEDrrrr$rrrr
<module>s