
    daf                         d Z ddlZddlZddlZddlZddlZd Z e       Z	d Z
ej                  ej                  j                  fZ e       Zd Zd Zy))iscoroutinefunctioniscoroutine    Nc                      t         j                  j                  xsE t         j                  j                   xr( t	        t
        j                  j                  d            S )NPYTHONASYNCIODEBUG)sysflagsdev_modeignore_environmentboolosenvironget     -/root/Python-3.12.4/Lib/asyncio/coroutines.py_is_debug_moder   
   sF    99 Ncii&B&B"B #M"&rzz~~6J'K"LNr   c                 V    t        j                  |       xs t        | dd      t        u S )z6Return True if func is a decorated coroutine function._is_coroutineN)inspectr   getattrr   )funcs    r   r   r      s-    ''- BD/40MACr   c                     t        |       t        v ryt        | t              r1t	        t              dk  rt        j                  t        |              yy)z)Return True if obj is a coroutine object.Td   F)type_iscoroutine_typecache
isinstance_COROUTINE_TYPESlenadd)objs    r   r   r       sE    Cy**#'( %&,"&&tCy1r   c                    t        |       sJ 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                  xs d}d	}||j                  }| d
| d| }|S |j                  }| d| d| }|S )Nc                     t        | d      r| j                  r| j                  }n>t        | d      r| j                  r| j                  }ndt        |       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//00BCIBr   c                 t    	 | j                   S # t        $ r  	 | j                  cY S # t        $ r Y Y yw xY ww xY w)NF)
cr_runningAttributeError
gi_running)r'   s    r   
is_runningz%_format_coroutine.<locals>.is_runningA   sA    	??" 	&! 	s     	7&7	3737cr_codegi_codez runninggi_framecr_framez<empty co_filename>r   z running at :z done, defined at )	r   r&   r/   r0   r1   r2   co_filenamef_linenoco_firstlineno)	r'   r)   r.   	coro_coder(   
coro_framefilenamelineno	coro_reprs	            r   _format_coroutiner<   0   s"   t  ItYDLLLL		y	!dllLL	Id[))JtZ T]]]]
	z	"t}}]]
 $$=(=HF$$ khZqA	  )) k!3H:QvhG	r   )__all__collections.abccollectionsr   r   r   typesr   objectr   r   CoroutineTypeabc	Coroutiner   setr   r   r<   r   r   r   <module>rF      s]   
.   	 
 N C '')B)BC   =r   