Hacked By AnonymousFox

Current Path : /proc/thread-self/root/proc/self/root/opt/alt/python310/lib64/python3.10/distutils/__pycache__/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/opt/alt/python310/lib64/python3.10/distutils/__pycache__/log.cpython-310.pyc

o

6��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�4/opt/alt/python310/lib64/python3.10/distutils/log.py�__init__s
zLog.__init__cCs�|tttttfvrtdt|���||jkrV|r||}|tttfvr'tj	}ntj
}z	|�d|�WntyO|j
}|�|d��|�}|�d|�Ynw|��dSdS)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�streamrrrr�_logs"
��zLog._logcGs|�|||�dSr)r#)r
rr r!rrr�log'�zLog.logcG�|�t||�dSr)r#r�r
r r!rrr�debug*r%z	Log.debugcGr&r)r#rr'rrr�info-r%zLog.infocGr&r)r#rr'rrr�warn0r%zLog.warncGr&r)r#rr'rrr�error3r%z	Log.errorcGr&r)r#rr'rrr�fatal6r%z	Log.fatalN)�__name__�
__module__�__qualname__rr
r#r$r(r)r*r+r,rrrrrsrcCstj}|t_|Sr)�_global_logr	)r�oldrrr�
set_thresholdAsr2cCs@|dkr
tt�dS|dkrtt�dS|dkrtt�dSdS)Nrrr)r2rrr)�vrrr�
set_verbosityGs�r4)�__doc__rrrrrrrr0r$r(r)r*r+r,r2r4rrrr�<module>s"+

Hacked By AnonymousFox1.0, Coded By AnonymousFox