3
\ ã @ sr g Z d dlZd dlZddlmZ ejjjZejj Z ejj
Z
G dd„ deƒZdZdZ
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/asyncio/base_futures.pyr
s r ZPENDINGZ CANCELLEDZFINISHEDc C s t | jdƒo| jdk S )zÓCheck 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.