�
!A?h� � �x � d Z ddlZddlmZ ddlmZ dZdZdZd � Z d
� Z
d� Z ej � � d� � � Z
dS )
� � N)� get_ident� )�format_helpers�PENDING� CANCELLED�FINISHEDc �> � t | j d� � o| j duS )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 )�objs �A/opt/alt/python-internal/lib64/python3.11/asyncio/base_futures.py�isfuturer s) � �
�C�M�#=�>�>�
5��(��4�6� c � � t | � � }|sd} d� }|dk r || d d � � } n�|dk rAd� || d d � � || d d � � � � } nJ|dk rDd� || d d � � |dz
|| d d � � � � } d | � d
�S )�#helper function for Future.__repr__� c �, � t j | d� � S )Nr )r �_format_callback_source)�callbacks r � format_cbz$_format_callbacks.