Your IP : 18.116.27.225


Current Path : /opt/imunify360/venv/lib64/python3.11/site-packages/jinja2/__pycache__/
Upload File :
Current File : //opt/imunify360/venv/lib64/python3.11/site-packages/jinja2/__pycache__/debug.cpython-311.pyc

�

S�DgQ!����ddlZddlmZddlmZddlmZddlmZddlm	Z	dd�Z
d	�Zd
�Zej
dkrd�ZdSer	ddlZd
�ZdS#e$rd�ZYdSwxYwddlZGd�dej��Zd�ZdS)�N)�CodeType�)�TemplateSyntaxError)�PYPY)�
internal_code)�missingc��tj��\}}}t|t��r[|jsTd|_||_	|�d��n#t$rYnwxYwt|d|j	pd|j
��}n|j}g}|��|jj
tvr|j}�|jj�d��}|�G|�|j��}t|||j	|��}|�|��n|�|��|j}|��d}t)|��D]}t+||��}�|||fS)a�Rewrite the current exception to replace any tracebacks from
    within compiled template code with tracebacks that look like they
    came from the template source.

    This must be called within an ``except`` block.

    :param exc_info: A :meth:`sys.exc_info` tuple. If not provided,
        the current ``exc_info`` is used.
    :param source: For ``TemplateSyntaxError``, the original source if
        known.
    :return: A :meth:`sys.exc_info` tuple that can be re-raised.
    TNz	<unknown>�__jinja_template__)�sys�exc_info�
isinstancer�
translated�source�with_traceback�AttributeError�fake_traceback�filename�lineno�tb_next�tb_frame�f_coder�	f_globals�get�get_corresponding_lineno�	tb_lineno�append�reversed�tb_set_next)	r�exc_type�	exc_value�tb�stack�templater�fake_tbrs	         �l/builddir/build/BUILD/imunify360-venv-2.4.0/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/debug.py�rewrite_traceback_stackr&
s���"�l�n�n��H�i���)�0�1�1��)�:N��#�	��!�	��	�
�$�$�T�*�*�*�*���	�	�	��D�	����
��t�Y�/�>�;�	�@P�
�
���
�Z���E�
�.��;���.�.���B���;�(�,�,�-A�B�B�����6�6�r�|�D�D�F�$�Y��H�4E�v�N�N�G��L�L��!�!�!�!��L�L�����
�Z��!
�.�$�G��u�o�o�+�+���b�'�*�*����Y��'�'s�A�
A&�%A&c���|�0t|jj��}|�dd��ni}|||d�}t	d|dz
zdz|d��}	d}|�<|jjj}|d	krd
}n"|�d��r
d|d
d�z}g}	ddddddddddd|fd|fddddfD]j}
t|
t��r|	�
|
d���3	|	�
t|d|
z�����[#t$rY�gwxYwt|	�}n#t$rYnwxYw	t|||��dS#t $r!t#j��djcYSwxYw) a,Produce a new traceback object that looks like it came from the
    template source instead of the compiled code. The filename, line
    number, and location name will point to the template, and the local
    variables will be the current template context.

    :param exc_value: The original exception to be re-raised to create
        the new traceback.
    :param tb: The original traceback to get the local variables and
        code info from.
    :param filename: The template filename.
    :param lineno: The line number in the template source.
    N�__jinja_exception__)�__name__�__file__r(�
rzraise __jinja_exception__�execr#�rootztop-level template code�block_z
block "%s"��argcount�posonlyargcount�kwonlyargcount�nlocals�	stacksize�flags�code�consts�names�varnamesr�name�firstlineno�lnotab�freevars�cellvars�co_�)�get_template_localsr�f_locals�pop�compiler�co_name�
startswithr
�tupler�getattrrr�	Exceptionr,�
BaseExceptionrrr)r r!rr�locals�globalsr6�location�function�	code_args�attrs           r%rrLs��
�~�%�R�[�%9�:�:���
�
�(�$�/�/�/�/�����(���G��4�6�A�:�&�)D�D�h�PV�W�W�D�2
���
�>��{�)�1�H��6�!�!�4����$�$�X�.�.�
7�'�(�1�2�2�,�6��
�	�
����������
��"�
�X������!
�	�	�D�$�$��&�&�
�� � ��a��)�)�)��
�� � ���u�t�|�!<�!<�=�=�=�=��!�
�
�
���
������#�����
�
�
�	
��
����)��T�7�F�#�#�#�#�#���)�)�)��|�~�~�a� �(�(�(�(�)���sI�BD#�"&D	�D#�	
D�D#�D�D#�#
D0�/D0�4E�(E2�1E2c�H�|�d��}|r'|������}ni}i}|���D]�\}}|�d��r	|t
ur�$	|�dd��\}}}t|��}n#t$rY�[wxYw|�|d��d}||kr||f||<��|���D]-\}\}}|t
ur|�	|d���(|||<�.|S)zlBased on the runtime locals, get the context that would be
    available at that point in the template.
    �context�l_�_r@)���rN)
r�get_all�copy�itemsrFr�split�int�
ValueErrorrC)	�real_locals�ctx�data�local_overridesr:�valuerT�depth�	cur_depths	         r%rArA�s]��
�/�/�)�
$�
$�C�
���{�{�}�}�!�!�#�#������O�"�(�(�*�*�3�3���e����t�$�$�	���(8�(8��	�!�Z�Z��Q�/�/�N�A�u�d���J�J�E�E���	�	�	��H�	����$�'�'��e�4�4�Q�7�	��u���%*�E�N�O�D�!��,�1�1�3�3�����j�q�%��G����H�H�T�4� � � � ��D��J�J��Ks�<)B&�&
B3�2B3)��c��||_|S�N)r�r!rs  r%rr�s����
��	�c�:���fd�}tj||���S)Nc�h��|jdkr|jddkr�S|���S)N�__getattribute__rr)�opname�args�delegate)�oprs �r%�
controllerztb_set_next.<locals>.controller�s4����9� 2�2�2�r�w�q�z�Y�7N�7N�"�N��{�{�}�}�$rh)�obj)�tputil�
make_proxy)r!rrps ` r%rr�s4���
%�
%�
%�
%�
%��$�Z�R�8�8�8�8rhc��|Srf�rgs  r%rr�s���Irhc�l�eZdZdeje�����zfdejfgZdS)�_CTraceback�
PyObject_HEADrN)	r)�
__module__�__qualname__�ctypes�c_byte�object�
__sizeof__�	py_object�_fields_rurhr%rwrw�sC�������f�m�f�f�h�h�.A�.A�.C�.C�C�D�
��(�)�	
���rhrwc�z�t�t|����}|j�Pt	j|j��}t	j��|_tj�|��|�:t	j|��}tj�|��||_|Srf)	rw�from_address�idrr{r�	pythonapi�	Py_DecRef�	Py_IncRef)r!r�c_tb�	c_tb_nexts    r%rr�s����'�'��2���/�/���:�!��(���4�4�I�!�+�-�-�D�L���&�&�y�1�1�1����(��1�1�I���&�&�y�1�1�1�$�D�L��	rhrf)r�typesr�r�_compatr�utilsrrr&rrA�version_inforrr�ImportErrorr{�	Structurerwrurhr%�<module>r�s���
�
�
�
�������!�!�!�!�!�!������� � � � � � �������?(�?(�?(�?(�DX)�X)�X)�v)�)�)�X��v��������

�2�9��
�
�
�	9�	9�	9�	9�	9������	�	�	�	�	�	�����*�M�M�M�
�
�
�
�
�f�&�
�
�
�����s�A	�	A�A

?>