관리-도구
편집 파일: coroutines.cpython-312.opt-2.pyc
� �Q�f � � � d Z ddlZddlZddlZddlZddlZd� Z e� Z d� Z ej ej j fZ e� Zd� Zd� Zy))�iscoroutinefunction�iscoroutine� Nc �� � t j j xsE t j j xr( t t j j d� � S )N�PYTHONASYNCIODEBUG)�sys�flags�dev_mode�ignore_environment�bool�os�environ�get� � �9/opt/alt/python312/lib64/python3.12/asyncio/coroutines.py�_is_debug_moder sF � ��9�9��� N�c�i�i�&B�&B�"B� #M�"&�r�z�z�~�~�6J�'K�"L�Nr c �X � t j | � xs t | dd � t u S )N� _is_coroutine)�inspectr �getattrr )�funcs r r r s0 � �@��'�'��-� B��D�/�4�0�M�A�Cr c � � t | � t v ryt | t � r1t t � dk rt j t | � � yy)NT�d F)�type�_iscoroutine_typecache� isinstance�_COROUTINE_TYPES�len�add)�objs r r r sH � �3��C�y�*�*���#�'�(� �%�&��,�"�&�&�t�C�y�1��r c �� � d� }d� }d }t | d� r| j r | j }n$t | d� r| j r| j } || � }|s || � r|� d�S |S d }t | d� r| j r | j }n$t | d� r| j r| j }|j xs d}d }|�|j }|� d |� d|� �}|S |j }|� d|� d|� �}|S ) Nc �� � t | d� r| j r | j }n>t | d� r| j r | j }ndt | � j � d�}|� d�S )N�__qualname__�__name__�<z without __name__>z())�hasattrr# r$ r )�coro� coro_names r �get_namez#_format_coroutine.<locals>.get_name3 sc � � �4��(�T�->�->��)�)�I� �T�:� &�4�=�=�� � �I� �D��J�/�/�0�0B�C�I���B��r c �t � | j S # t $ r | j cY S # t $ r Y Y yw xY ww xY w)NF)� cr_running�AttributeError� gi_running)r'