AlkantarClanX12

Your IP : 3.148.108.201


Current Path : /usr/lib64/python3.6/distutils/__pycache__/
Upload File :
Current File : //usr/lib64/python3.6/distutils/__pycache__/log.cpython-36.pyc

3


 \��@sldZdZdZdZdZdZddlZGdd	�d	�Ze�Zej	Z	ej
Z
ejZejZej
Z
ejZd
d�Zdd
�ZdS)z,A simple log mechanism styled after PEP 282.������Nc@sPeZdZefdd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�ZdS)�LogcCs
||_dS)N)�	threshold)�selfr�r
�%/usr/lib64/python3.6/distutils/log.py�__init__szLog.__init__cCs�|tttttfkr"tdt|���||jkr�|r8||}|tttfkrNtj	}ntj
}y|jd|�Wn:tk
r�|j
}|j|d�j|�}|jd|�YnX|j�dS)Nz%s wrong log levelz%s
�backslashreplace)�DEBUG�INFO�WARN�ERROR�FATAL�
ValueError�strr�sys�stderr�stdout�write�UnicodeEncodeError�encoding�encode�decode�flush)r	�level�msg�args�streamrr
r
r�_logs
zLog._logcGs|j|||�dS)N)r")r	rrr r
r
r�log'szLog.logcGs|jt||�dS)N)r"r)r	rr r
r
r�debug*sz	Log.debugcGs|jt||�dS)N)r"r)r	rr r
r
r�info-szLog.infocGs|jt||�dS)N)r"r)r	rr r
r
r�warn0szLog.warncGs|jt||�dS)N)r"r)r	rr r
r
r�error3sz	Log.errorcGs|jt||�dS)N)r"r)r	rr r
r
r�fatal6sz	Log.fatalN)�__name__�
__module__�__qualname__rrr"r#r$r%r&r'r(r
r
r
rrsrcCstj}|t_|S)N)�_global_logr)r�oldr
r
r�
set_thresholdAsr.cCs8|dkrtt�n"|dkr$tt�n|dkr4tt�dS)Nrrr)r.rrr)�vr
r
r�
set_verbosityGs

r0)�__doc__rrrrrrrr,r#r$r%r&r'r(r.r0r
r
r
r�<module>s +