Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/jinja2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/jinja2/__pycache__/debug.cpython-310.pyc
o

F��a.!�
@s�ddlZddlZddlZddlmZddlmZddlmZddl	m
Z
ddl	mZejr3ddl
mZd d	ejed
efdd�Zd
edejededed
ef
dd�Zdejeejfd
ejeejffdd�Zejdkr|dedejed
efdd�ZdSe��dkr�zddlZWney�dedejed
efdd�ZYdSwdedejed
efdd�ZdSddlZGdd�dej�Z dedejed
efdd�ZdS)!�N)�CodeType)�
TracebackType�)�TemplateSyntaxError)�
internal_code)�missing)�Context�source�returnc	Cst��\}}}t�t|�}t�t|�}t|t�r2|js2d|_||_	|�
d�t|d|jp-d|j
�}n|j}g}|durp|jjtvrE|j}q7|jj�d�}|durd|�|j�}t|||j|�}|�|�n|�|�|j}|dus;d}t|�D]}t||�}qv|�
|�S)axRewrite 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'�./usr/lib/python3/dist-packages/jinja2/debug.py�rewrite_traceback_stacks8
�
�
r)r"r#rrc	Cs|durt|jj�}|�dd�ni}|||d�}td|dd|d�}d}|durE|jjj}|d	kr7d
}n|�d�rEd|d
d���}tj	dkrQ|j
|d�}n t|j|j
|j|j|j|j|j|j|j|j||j|j|j|j�}z	t|||�WdSty�t��djYSw)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_zblock �)��)�co_name�)�get_template_localsr�f_locals�pop�compilerr4�
startswithr�version_info�replacer�co_argcount�co_kwonlyargcount�
co_nlocals�co_stacksize�co_flags�co_code�	co_consts�co_names�co_varnames�co_filename�co_firstlineno�	co_lnotab�co_freevars�co_cellvarsr.rr
r)	r"r#rr�locals�globals�code�location�functionr'r'r(rLsT��


��r�real_localsc
	Cs�|�d�}|dur|����}ni}i}|��D]9\}}|�d�r%|tur&qz|�dd�\}}}t|�}Wn	ty>Yqw|�|d�d}	|	|krQ||f||<q|��D]\}\}}|turg|�	|d�qV|||<qV|S)zlBased on the runtime locals, get the context that would be
    available at that point in the template.
    �contextN�l_r!r5)���r)
r�get_all�copy�itemsr:r�split�int�
ValueErrorr8)
rP�ctx�data�local_overrides�name�valuer!�	depth_str�depth�	cur_depthr'r'r(r6�s.
��
r6)r2�rcCs
||_|S�N�r�r#rr'r'r(r �sr �PyPycCs|Srcr'rer'r'r(r �scs�fdd�}tj||d�S)Ncs$|jdkr|jddkr�S|��S)N�__getattribute__rr)�opname�args�delegate)�oprdr'r(�
controller�sztb_set_next.<locals>.controller)�obj)�tputil�
make_proxy)r#rrlr'rdr(r �sc@s*eZdZdeje���fdejfgZdS)�_CTraceback�
PyObject_HEADrN)	r+�
__module__�__qualname__�ctypes�c_byte�object�
__sizeof__�	py_object�_fields_r'r'r'r(rp�s�rpcCsbt�t|��}|jdurt�|j�}t��|_tj�|�|dur/t�|�}tj�|�||_|Src)	rp�from_address�idrrtrx�	pythonapi�	Py_DecRef�	Py_IncRef)r#r�c_tb�	c_tb_nextr'r'r(r �s


rc)!�platformr�typingr�typesrr�
exceptionsr�utilsrr�
TYPE_CHECKING�runtimer�Optional�strrr)rXr�Mapping�Any�Dictr6r;r �python_implementationrn�ImportErrorrt�	Structurerpr'r'r'r(�<module>sv=����
�*J
,�������
������

Spamworldpro Mini