AlkantarClanX12
Current Path : /opt/imunify360/venv/lib/python3.11/site-packages/jinja2/__pycache__/ |
Current File : //opt/imunify360/venv/lib/python3.11/site-packages/jinja2/__pycache__/debug.cpython-311.pyc |
� l��fQ! � �� � d dl Z d dlmZ ddlmZ ddlmZ ddlmZ ddlm Z dd�Z d � Zd � Ze j dk rd� ZdS er d dlZd � ZdS # e$ r d� ZY dS w xY wd dlZ G d� dej � � Zd� ZdS )� N)�CodeType� )�TemplateSyntaxError)�PYPY)� internal_code)�missingc � � t j � � \ }}}t |t � � r[|j sTd|_ | |_ |� d� � n# t $ r Y nw xY wt |d|j pd|j � � }n|j }g }|��|j j t v r|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_tbr s �l/builddir/build/BUILD/imunify360-venv-2.3.5/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/debug.py�rewrite_traceback_stackr&