ok

Mini Shell

Direktori : /proc/thread-self/root/opt/alt/python34/lib64/python3.4/distutils/__pycache__/
Upload File :
Current File : //proc/thread-self/root/opt/alt/python34/lib64/python3.4/distutils/__pycache__/log.cpython-34.pyc

�
i ft�@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/python34/lib64/python3.4/distutils/log.py�__init__szLog.__init__cCs�|tttttfkr4tdt|���n||jkr�|rV||}n|tttfkrwtj	}n	tj
}|jdkr�|j}|j
|d�j|�}n|jd|�|j�ndS)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/cCsO|dkrtt�n2|dkr2tt�n|dkrKtt�ndS)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