HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //usr/lib/python3/dist-packages/twisted/logger/__pycache__/_util.cpython-310.pyc
o

�bx�@s>dZddlmZddlmZddlmZdedefdd	�Zd
S)z
Logging utilities.
�)�List�)�LogTrace)�Logger�trace�returncCs�dtdtfdd�}g}g}|D]F\}}|r|d|urA||vr0|d|ur/|��|d|us%n|s<|�||��d��|�|�|�dt|��|�d||��d��qd	�|�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.
    �objrcSs"t|d�r|�d|j�d�S|�S)N�namez (�))�hasattrr	)r�r�6/usr/lib/python3/dist-packages/twisted/logger/_util.py�formatWithNames
z#formatTrace.<locals>.formatWithName����
z  z-> �)�object�str�pop�append�len�join)rr�result�lineage�parent�childrrr
�formatTraces ��

rN)	�__doc__�typingr�_interfacesr�_loggerrrrrrrr
�<module>s