Your IP : 216.73.216.213


Current Path : /opt/alt/python37/lib64/python3.7/site-packages/twisted/logger/__pycache__/
Upload File :
Current File : //opt/alt/python37/lib64/python3.7/site-packages/twisted/logger/__pycache__/_util.cpython-37.pyc

B

�'�\0�@sdZdd�ZdS)z
Logging utilities.
cCs�dd�}g}g}x�|D]�\}}|r.|d|k	rt||krRx<|d|k	rN|��q8Wn"|sj|�d�||���|�|�|�dt|��|�d�||���qWd�|�S)a�
    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.
    @type trace: object

    @return: A multi-line string with indentation and arrows indicating the
        flow of the message through various observers.
    @rtype: L{unicode}
    cSs&t|d�rd�||j�Sd�|�SdS)N�namez	{0} ({1})z{0})�hasattr�formatr)�obj�r�G/opt/alt/python37/lib64/python3.7/site-packages/twisted/logger/_util.py�formatWithNames
z#formatTrace.<locals>.formatWithName���z{0}
z  z-> {0}
�)�pop�appendr�len�join)�tracer�resultZlineage�parent�childrrr�formatTraces

rN)�__doc__rrrrr�<module>s