403Webshell
Server IP : 35.80.110.71  /  Your IP : 216.73.216.52
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux ip-172-31-21-44 6.17.0-1019-aws #19~24.04.1-Ubuntu SMP Tue Jun 23 18:53:06 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/stack_data/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/stack_data/__pycache__/serializing.cpython-312.pyc
�

�x�eD����ddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZddlm
Z
mZmZddlmZmZmZmZmZmZddlmZej2e�ZGd�d	�Zy)
�N)�Counter)�escape)�	FrameType�
TracebackType)�Union�Iterable�List)�style_with_executing_node�Options�Line�	FrameInfo�Variable�RepeatedFrames)�some_strc��eZdZdddddddddddddd�
d�Zddeefd	�Zd
edefd�Zddeefd�Z	d
e
eee
fde
efd�Zde
defd�Zdeeeefdefd�Zd�Zdedefd�Zdede
efd�Zdedefd�Zd�Zdefd�Zdedefd�Zy)�
SerializerNFT�monokaiz
bg:#005080)
�options�	pygmented�show_executing_node�pygments_formatter_cls�pygments_formatter_kwargs�pygments_style�executing_node_modifier�use_code_qualname�strip_leading_indent�html�chain�collapse_repeated_frames�show_variablesc
��|�
t�}|r>|js2|rt||�}|�|
rddlm}nddlm}|dd|i|xsi��|_||_||_|	|_	|
|_
||_||_||_
|
|_y)Nr)�
HtmlFormatter)�Terminal256Formatter�style�)r�pygments_formatterr
�pygments.formatters.htmlr"�pygments.formatters.terminal256r#rrrrrrrr )�selfrrrrrrrrrrrrr s              �8/usr/lib/python3/dist-packages/stack_data/serializing.py�__init__zSerializer.__init__s���"�?��i�G��W�7�7�"�!:�"�$;�"��&�-����*@�*�$�*�+�1�r�*�G�&�
#���!2���$8��!���	���
����(@��%�,����returnc���|�tj�d}g}|jr�|j�@|j	|j�}t
jj�|dd<nW|j�K|js?|j	|j�}t
jj�|dd<|j|j|��|S)N�����tail)
�sys�exc_infor�	__cause__�format_exception�	traceback�_cause_message�strip�__context__�__suppress_context__�_context_message�append�format_traceback_part)r)�e�results   r*r5zSerializer.format_exceptionJs����9�����q�!�A����:�:��{�{�&��.�.�q�{�{�;��%.�%=�%=�%C�%C�%E��r�
�6�"����*�1�3I�3I��.�.�q�}�}�=��%.�%?�%?�%E�%E�%G��r�
�6�"��
�
�d�0�0��3�4��
r,r>c	���t|j|jxstj�d�tt|�jt|���d��S)N�)�type�message�)�frames�	exceptionr1)�dict�format_stack�
__traceback__r2r3rB�__name__r)r)r>s  r*r=z Serializer.format_traceback_part[sR����$�$�Q�_�_�%I�����q�8I�J���!�W�%�%� �����

�	
r,c	���|�tj�j}t|j	tj||j|j����S)N)r)	�inspect�currentframe�f_back�list�format_stack_datar
�
stack_datarr)r)�frame_or_tbs  r*rHzSerializer.format_stackesX����!�.�.�0�7�7�K���"�"��$�$���L�L�-1�-J�-J��
�
�	
r,�stackc#��K�|D]a}t|t�r1|j|�s�%tdddi|j	|������Dtdddi|j|������cy�w)NrB�frame�repeated_framesr%)�
isinstancer
�should_include_framerG�format_frame�format_repeated_frames)r)rS�items   r*rPzSerializer.format_stack_datassr�����	X�D��$�	�*��0�0��6���C��C�4�+<�+<�T�+B�C�C��W� 1�W�T�5P�5P�QU�5V�W�W�
	X�s�A(A*rVc���tt|j�j�d���}t	|D���cgc] \\}}}t	|j
||����"c}}}��Scc}}}w)Nc�2�|d|ddjfS)Nr/r)�co_name)r[s r*�<lambda>z3Serializer.format_repeated_frames.<locals>.<lambda>�s��t�A�w�h��Q���
�(:�(:�;�r,��key)�name�lineno�count)rE)�sortedr�
frame_keys�itemsrGr^)r)rV�counts�codercrds      r*rZz!Serializer.format_repeated_frames~ss����O�.�.�/�5�5�7�;�
���.4�
��*�N�T�6�E�����!����	
�		
��s�%A*rUc
��t|t�st||j�}t|jr|j
j
�n|jj|j|jt|j|j����}|jrt|j|��|d<|S)N)rb�filenamerc�lines�	variables)rWr
rrGr�	executing�
code_qualnamerir^rkrcrO�format_linesrlr �format_variables)r)rUr?s   r*rYzSerializer.format_frame�s����%��+��e�T�\�\�2�E���)�)����-�-�/��Z�Z�'�'��^�^��<�<��t�(�(����5�6�	
�����"&�t�'<�'<�U�'C�"D�F�;���
r,c#�K�|D]?}t|t�rtdddi|j|������2td�����Ay�w)NrB�line�line_gap)rBr%)rWrrG�format_line)r)rlrss   r*rpzSerializer.format_lines�sH�����	,�D��$��%��A��A�$�*:�*:�4�*@�A�A��
�+�+�		,�s�AArsc	��t|j|j|j|j|j
|j����S)N)r�escape_htmlr)�
is_currentrc�text)rGrxrc�renderrrr)r)rss  r*ruzSerializer.format_line�sE�������;�;�����.�.� �I�I�%)�%>�%>���
�	
r,�
frame_infoc#�K�	t|jd���D]}|j|����y#t$rtjd�YywxYw�w)Nc��|jS�N)rb)�vs r*r_z-Serializer.format_variables.<locals>.<lambda>�s
��!�&�&�r,r`z Error in getting frame variables)rerm�format_variable�	Exception�logrF)r)r{�vars   r*rqzSerializer.format_variables�sT����	>��j�2�2�8H�I�
0���*�*�3�/�/�
0���	>��M�M�<�=�	>�s%�A�05�A�A�A�A�Ar�c��t|j|j�|j|j|j����S)N)rb�value)rG�format_variable_partrb�format_variable_valuer�)r)r�s  r*r�zSerializer.format_variable�s>����*�*�3�8�8�4��+�+�D�,F�,F�s�y�y�,Q�R�
�	
r,c�4�|jrt|�S|Sr~)rrw)r)rys  r*r�zSerializer.format_variable_part�s���9�9��t�$�$��Kr,c��t|�Sr~)�repr)r)r�s  r*r�z Serializer.format_variable_value�s���E�{�r,c��y)NTr%)r)r{s  r*rXzSerializer.should_include_frame�s��r,r~)rJ�
__module__�__qualname__r+r	rGr5�
BaseExceptionr=rHrrr
rrPrZrrrYrprrurqrr�r��strr��boolrXr%r,r*rrs(���� �#�"&� � ,��!�
��!%��0-�d�$�t�*��"
�}�
��
�
��T�
�
�	X��e�I�~�$=�>�?�	X�	�$��	X�
�n�
��
� �%�	�9�m�(K�"L��QU��$,�	
��	
��	
�>�9�>��$��>�
�8�
��
���c���y��T�r,r)rL�loggingr2r6�collectionsrrrrw�typesrr�typingrrr	rQr
rrr
rr�stack_data.utilsr�	getLoggerrJr�rr%r,r*�<module>r�sM����
���&�*�(�(���&��g����!��r�rr,

Youez - 2016 - github.com/yon3zu
LinuXploit