%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/reportlab/lib/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/reportlab/lib/__pycache__/logger.cpython-312.pyc

�

��e���l�dZdZddlmZGd�d�Ze�ZGd�d�Ze�Zed�Zy	)
z3.3.0zALogging and warning framework, predating Python's logging package�)�stderrc�.�eZdZdZd�Zd�Zd�Zd�Zd�Zy)�Loggerz�
    An extended file type thing initially equivalent to sys.stderr
    You can add/remove file type things; it has a write method
    c�*�tg|_i|_y�N)r�_fps�_fns)�selfs �6/usr/lib/python3/dist-packages/reportlab/lib/logger.py�__init__zLogger.__init__
s���H��	���	�c��t|t�r2||jvryttd�}||jt<|j
j
|�y)z*add the file/string fp to the destinationsN�wb)�
isinstance�strr	�open�fnr�append)r
�fps  r�addz
Logger.addsC���b����T�Y�Y����b���B��D�I�I�b�M��	�	����r
c���t|t�r-||jvry|}|j|}|j|=||jvr'|j|jj|�=yy)z/remove the file/string fp from the destinationsN)rrr	�fnsr�index)r
rrs   r�removez
Logger.removes`���b�������"�F��B����2��B������
����?��	�	�$�)�)�/�/�"�-�.�r
c�b�|ddk7r|dz}|jD]}|j|��y)z"write text to all the destinations����
N)r�write)r
�textrs   rrzLogger.write#s.����8�T�>��T�	�4��)�)�+�B�R�X�X�d�^�+r
c�&�|j|�yr)r)r
rs  r�__call__zLogger.__call__(s���
�
�4�r
N)	�__name__�
__module__�__qualname__�__doc__rrrrr!�r
rrrs �����/�,�
r
rc� �eZdZdd�Zd�Zd�Zy)�WarnOncec�4�i|_d|z|_d|_y)Nz%s: �)�uttered�pfx�enabled)r
�kinds  rrzWarnOnce.__init__/s������$�;�����r
c��||jvr>|jr"tj|j|z�d|j|<yy)Nr*)r+r-�loggerrr,�r
�warnings  r�oncez
WarnOnce.once4s<���$�,�,�&��|�|�V�\�\�$�(�(�W�*<�=�$%�D�L�L��!�'r
c�&�|j|�yr)r3r1s  rr!zWarnOnce.__call__9s���	�	�'�r
N)�Warn)r"r#r$rr3r!r&r
rr(r(-s���
&�
r
r(�InfoN)	�__version__r%�sysrrr0r(�warnOnce�infoOncer&r
r�<module>r;sE��

��K���!�!�F�x��
�
�
���	�&�	�r

Zerion Mini Shell 1.0