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: //home/arjun/projects/env/lib/python3.10/site-packages/gunicorn/__pycache__/debug.cpython-310.pyc
o

%we��@s\dZddlZddlZddlZddlZddgZe�d�ZGdd�de�Z	dd	d�Z
d
d�ZdS)zPThe debug module contains utilities and functions for better
debugging Gunicorn.�N�spew�unspewz\W+c@seZdZddd�Zdd�ZdS)�SpewNTcCs||_||_dS)N��trace_names�show_values)�selfrr�r	�G/home/arjun/projects/env/lib/python3.10/site-packages/gunicorn/debug.py�__init__s
z
Spew.__init__cCsD|dkr�|j}d|jvr-|jd}|�d�s|�d�r!|dd�}|jd}t�||�}n d}zt�|�}||}WntyLd|jj	|j
f}Ynw|jdusW||jvr�td	|||�
�f�|jsg|Sg}	t�|�}
|
D]$}||jvr�|	�d
||j|f�||jvr�|	�d
||j|f�qp|	r�tdd�|	��|S)
N�line�__file__z.pycz.pyo����__name__z	[unknown]z,Unknown code named [%s].  VM instruction #%dz	%s:%s: %sz%s=%rz	%s� )�f_lineno�	f_globals�endswith�	linecache�getline�inspect�getsourcelines�IOError�f_code�co_name�f_lastir�print�rstripr�_token_spliter�split�append�f_locals�join)r�frame�event�arg�lineno�filename�namer�src�details�tokens�tokr	r	r
�__call__sD


�



��


�z
Spew.__call__)NT)r�
__module__�__qualname__rr-r	r	r	r
rs
rFcCst�t||��dS)zpInstall a trace hook which writes incredibly detailed logs
    about what code is being executed to stdout.
    N)�sys�settracerrr	r	r
r;scCst�d�dS)z-Remove the trace hook installed by spew.
    N)r0r1r	r	r	r
rBs)NF)�__doc__r0r�rer�__all__�compiler�objectrrrr	r	r	r
�<module>s

(