| Server IP : 3.7.136.76 / Your IP : 216.73.216.142 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ip-172-31-39-148 7.0.0-1010-aws #10~24.04.1-Ubuntu SMP PREEMPT Mon Jul 27 17:41:33 UTC 2026 x86_64 User : ubuntu ( 1000) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /snap/core22/2955/lib/python3/dist-packages/jinja2/__pycache__/ |
Upload File : |
o
F��a.! �
@ s� d dl Z d dlZd dlZd dlmZ d dlmZ ddlmZ ddl m
Z
ddl mZ ejr3ddl
mZ d d eje d
efdd�Zd
edeje deded
ef
dd�Zdejeejf d
ejeejf fdd�Zejdkr|dedeje d
efdd�ZdS e �� dkr�zd dlZW n ey� dedeje d
efdd�ZY dS w dedeje d
efdd�ZdS d dlZG dd� dej�Z dedeje d
efdd�ZdS )!� N)�CodeType)�
TracebackType� )�TemplateSyntaxError)�
internal_code)�missing)�Context�source�returnc C s t �� \}}}t�t|�}t�t|�}t|t�r2|js2d|_| |_ |�
d� t|d|jp-d|j
�}n|j}g }|durp|jjtv rE|j}q7|jj�d�}|durd|�|j�}t|||j|�}|�|� n|�|� |j}|dus;d}t|�D ]}t||�}qv|�
|�S )ax 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 source: For ``TemplateSyntaxError``, the original source if
known.
:return: The original exception with the rewritten traceback.
TNz <unknown>�__jinja_template__)�sys�exc_info�t�cast�
BaseExceptionr �
isinstancer �
translatedr �with_traceback�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_value�tb�stack�templater �fake_tbr � r'