Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/opt/alt/python37/lib64/python3.7/distutils/__pycache__/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/alt/python37/lib64/python3.7/distutils/__pycache__/log.cpython-37.pyc

B

� f��@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
�2/opt/alt/python37/lib64/python3.7/distutils/log.py�__init__szLog.__init__cCs�|tttttfkr"tdt|���||jkr�|r8||}|tttfkrNtj	}ntj
}y|�d|�Wn:tk
r�|j
}|�|d��|�}|�d|�YnX|��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|�|||�dS)N)r")r	rrr r
r
r�log'szLog.logcGs|�t||�dS)N)r"r)r	rr r
r
r�debug*sz	Log.debugcGs|�t||�dS)N)r"r)r	rr r
r
r�info-szLog.infocGs|�t||�dS)N)r"r)r	rr r
r
r�warn0szLog.warncGs|�t||�dS)N)r"r)r	rr r
r
r�error3sz	Log.errorcGs|�t||�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 +

Hacked By AnonymousFox1.0, Coded By AnonymousFox