a
    ¿5hí  ã                   @   sV   d dl Z d dlZd dlZddlmZ d dlZdd„ Zddœdd„Ze	e	d	œd
d„Z
dS )é    Né   )Úmonkeyc                 C   s   | j tjk S )N)ZlevelnoÚloggingÚWARNING)Úrecord© r   ú1lib/python3.9/site-packages/setuptools/logging.pyÚ_not_warning
   s    r	   )Úreturnc                  C   sr   t  ¡ } |  t j¡ t  tj¡}| t¡ | |f}t jdd|t j	d� t
 tjj¡rnt ttjd¡ tjtj_dS )zÇ
    Configure logging to emit warning and above to stderr
    and everything else to stdout. This behavior is provided
    for compatibility with distutils.log but may change in
    the future.
    z	{message}Ú{)ÚformatZstyleÚhandlersÚlevelÚset_thresholdN)r   ZStreamHandlerÚsetLevelr   ÚsysÚstdoutZ	addFilterr	   ZbasicConfigÚDEBUGÚinspectZismoduleÚ	distutilsZdistÚlogr   Z
patch_funcr   )Zerr_handlerZout_handlerr   r   r   r   Ú	configure   s    

ÿr   )r   r
   c                 C   s   t j | d ¡ t | ¡S )Né
   )r   Úrootr   r   Z	unpatched)r   r   r   r   r   &   s    r   )r   r   r   Ú r   Zdistutils.logr   r	   r   Úintr   r   r   r   r   Ú<module>   s   