Your IP : 216.73.216.213


Current Path : /opt/alt/python35/lib64/python3.5/site-packages/numpy/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/site-packages/numpy/distutils/__pycache__/log.cpython-35.pyc



(��^�
�
@sQddlmZmZmZddlZddlTddlmZddlmZej	ddkr�ddl
mZmZm
Z
mZmZmZn.ddlmZmZm
Z
mZmZmZdd	d
�ZGdd�de�Zee_ejZd
dd�Zd
dd�Zee
eeeeeeeeiZeddd�dS)�)�division�absolute_import�print_functionN)�*)�Log)�_global_log��)�red_text�default_text�	cyan_text�
green_text�is_sequence�	is_stringcCsIt|�r|jdd�S|rEt|�rEtdd�|D��S|S)N�%z%%cSs"g|]}t|dd��qS)�flagr)�	_fix_args)�.0�a�r�F/opt/alt/python35/lib64/python3.5/site-packages/numpy/distutils/log.py�
<listcomp>s	z_fix_args.<locals>.<listcomp>)r�replacer�tuple)�argsrrrrrs
rc@s(eZdZdd�Zdd�ZdS)rcCsJ||jkrF|r%|t|�}tt||��tjj�dS)N)�	thresholdr�print�_global_color_map�sys�stdout�flush)�self�level�msgrrrr�_logs
zLog._logcGsSt|jkrO|r2tt|t|���ntt|��tjj�dS)zc
        If we log WARN messages, log this message as a 'nice' anti-warn
        message.

        N)�WARNrrr
rrrr )r!r#rrrr�good&s
zLog.goodN)�__name__�
__module__�__qualname__r$r&rrrrrsrFcCsUtj}|tks|r=|t_|tkrQtd�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_threshold8s		
r.c
Cs�tj}|dkr%tt|�nQ|dkrAtt|�n5|dkr]tt|�n|dkrvtt|�tdtdtdtdtdij|d�S)Nrr	�������)	rrr.�ERRORr%�INFOr*�FATAL�get)�vr,r-rrr�
set_verbosityGs	
r7r,T)�
__future__rrrrZ
distutils.logr�old_Logr�version_info�	misc_utilr
rrr
rr�numpy.distutils.misc_utilr�	__class__r&r.r7r*r3r%r2r4rrrrr�<module>s&
1.