HOME


sh-3ll 1.0
DIR:/usr/local/lib64/python3.6/site-packages/numpy/distutils/__pycache__/
Upload File :
Current File : //usr/local/lib64/python3.6/site-packages/numpy/distutils/__pycache__/log.cpython-36.pyc
3

���h
�
@s�ddlZddlTddlmZddlmZddlmZmZmZm	Z	m
Z
mZddd�ZGd	d
�d
e�Zee_
ejZddd
�Zdd�Zddd�ZeeeeeeeeeeiZeddd�dS)�N)�*)�Log)�_global_log)�red_text�default_text�	cyan_text�
green_text�is_sequence�	is_string�cCs6t|�r|jdd�S|r2t|�r2tdd�|D��S|S)N�%z%%cSsg|]}t|dd��qS)r)�flag)�	_fix_args)�.0�a�r�4/tmp/pip-build-5_djhm0z/numpy/numpy/distutils/log.py�
<listcomp>sz_fix_args.<locals>.<listcomp>)r
�replacer	�tuple)�argsr
rrrrs
rc@seZdZdd�Zdd�ZdS)rcCs8||jkr4|r|t|�}tt||��tjj�dS)N)�	thresholdr�print�_global_color_map�sys�stdout�flush)�self�level�msgrrrr�_logs

zLog._logcGs>t|jkr:|r$tt|t|���ntt|��tjj�dS)zc
        If we log WARN messages, log this message as a 'nice' anti-warn
        message.

        N)�WARNrrrrrrr)rrrrrr�good s

zLog.goodN)�__name__�
__module__�__qualname__r r"rrrrrsrFcCs>tj}|tks|r*|t_|tkr:td�ntd||f�|S)Nz[set_threshold: setting threshold to DEBUG level, it can be changed only with force argumentz?set_threshold: not changing threshold from DEBUG level %s to %s)rr�DEBUG�info)r�force�
prev_levelrrr�
set_threshold2s
r*cCstjS)N)rrrrrr�
get_threshold@sr+c
Csttj}|dkrtt|�n:|dkr.tt|�n&|dkrBtt|�n|dkrTtt|�tdtdtdtdtdij|d�S)Nrr�������)	rrr*�ERRORr!�INFOr&�FATAL�get)�vr(r)rrr�
set_verbosityCs
r4T)r()r)F)F)rZ
distutils.logrZold_LogrZnumpy.distutils.misc_utilrrrrr	r
r�	__class__r"r*r+r4r&r0r!r/r1rrrrr�<module>s"