ok

Mini Shell

Direktori : /opt/alt/python35/lib64/python3.5/distutils/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/distutils/__pycache__/log.cpython-35.pyc



M�Mat�@s�dZdZdZdZdZdZddlZGdd	�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@sseZdZedd�Zdd�Zdd�Zdd�Zd	d
�Zdd�Z	d
d�Z
dd�ZdS)�LogcCs
||_dS)N)�	threshold)�selfr�r
�2/opt/alt/python35/lib64/python3.5/distutils/log.py�__init__szLog.__init__cCs�|tttttfkr1tdt|���||jkr�|rP||}|tttfkrqtj	}n	tj
}|jdkr�|j}|j
|d�j|�}|jd|�|j�dS)Nz%s wrong log level�strict�backslashreplacez%s
)�DEBUG�INFO�WARN�ERROR�FATAL�
ValueError�strr�sys�stderr�stdout�errors�encoding�encode�decode�write�flush)r	�level�msg�args�streamrr
r
r�_logs
		zLog._logcGs|j|||�dS)N)r#)r	rr r!r
r
r�log%szLog.logcGs|jt||�dS)N)r#r)r	r r!r
r
r�debug(sz	Log.debugcGs|jt||�dS)N)r#r)r	r r!r
r
r�info+szLog.infocGs|jt||�dS)N)r#r)r	r r!r
r
r�warn.szLog.warncGs|jt||�dS)N)r#r)r	r r!r
r
r�error1sz	Log.errorcGs|jt||�dS)N)r#r)r	r r!r
r
r�fatal4sz	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_threshold?s		r/cCsL|dkrtt�n/|dkr2tt�n|dkrHtt�dS)Nrrr)r/rrr)�vr
r
r�
set_verbosityEs

r1)�__doc__rrrrrrrr-r$r%r&r'r(r)r/r1r
r
r
r�<module>s )							

Zerion Mini Shell 1.0