%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/mailman/Mailman/Logging/
Upload File :
Create Path :
Current File : //lib/mailman/Mailman/Logging/Logger.pyo

�
��ac@swdZddlZddlZddlZddlmZddlmZddlm	Z	dZ
dd	d��YZdS(
sDFile-based logger, writes to named category files in mm_cfg.LOG_DIR.i����N(t
StringType(tmm_cfg(t_logexcs
iso-8859-1tLoggercBsVeZddd�Zd�Zd�Zd�Zd�Zd�Zd�Zd	�Z	RS(
iicCsYtjjtj|�|_d|_||_t	p<t
j�|_|rU|j
�ndS(s{nofail says to fallback to sys.__stderr__ if write fails to
        category file - a complaint message is emitted, but no exception is
        raised.  Set nofail=0 if you want to handle the error in your code,
        instead.

        immediate=1 says to create the log file on instantiation.
        Otherwise, the file is created only when there are writes pending.
        N(tostpathtjoinRtLOG_DIRt_Logger__filenametNonet_Logger__fpt_Logger__nofailtLOG_ENCODINGtsystgetdefaultencodingt_Logger__encodingt_Logger__get_f(tselftcategorytnofailt	immediate((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyt__init__$s			cCs|j�dS(N(tclose(R((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyt__del__4scCsd|jj|j
fS(Ns
<%s to %s>(t	__class__t__name__R(R((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyt__repr__7scCs�|jr|jSytjd�}z[y%tj|jd|jdd�}Wn&tk
rrt|jdd�}nX||_Wdtj|�XWn?tk
r�}|j	r�t
||�tj}|_q��nX|SdS(Nisa+treplacei(
R
RtumasktcodecstopenRRtLookupErrortIOErrorRRR
t
__stderr__(Rtoutfte((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyt__get_f:s&	


	
cCs,|j�}t|d�r(|j�ndS(Ntflush(RthasattrR&(RR#((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyR&RscCskt|t�r't||jd�}n|j�}y|j|�Wn tk
rf}t||�nXdS(NR(t
isinstanceRtunicodeRRtwriteR R(RtmsgR#((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyR*WscCs"x|D]}|j|�qWdS(N(R*(Rtlinestl((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyt
writelines`s
cCs*|js
dS|j�j�d|_dS(N(R
RRR	(R((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyRds	(
Rt
__module__RRRRR&R*R.R(((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyR#s							((t__doc__R
RRttypesRtMailmanRtMailman.Logging.UtilsRRR(((sd/builddir/build/BUILDROOT/mailman-2.1.15-30.el7_9.2.x86_64/usr/lib/mailman/Mailman/Logging/Logger.pyt<module>s

Zerion Mini Shell 1.0