B
)WC @ sr d Z ddlZddlZddlmZ ejjjZejj Z ejj
Z
G dd deZdZdZ
d Zd
d Zdd
Zdd ZdS ) N )format_helpersc @ s e Zd ZdZdS )InvalidStateErrorz+The operation is not allowed in this state.N)__name__
__module____qualname____doc__r r r 9/opt/alt/python37/lib64/python3.7/asyncio/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 }|dkr2|| d d } n`|dkr`d|| d d || d d } n2|dkrd|| d d |d || d d } d
| dS )z#helper function for Future.__repr__ c S s t | dS )Nr )r Z_format_callback_source)callbackr r r
format_cb( s z$_format_callbacks.