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__/exceptions.cpython-310.pyc
o

�:�`��@s�ddlZejr
ddlmZGdd�de�ZGdd�deee�Z	Gdd	�d	e	�Z
Gd
d�de�ZGdd
�d
e�ZGdd�de�Z
Gdd�de
�ZGdd�de
�ZGdd�de
�ZdS)�N���	UndefinedcsJeZdZdZd	dejeddf�fdd�
Zedejefdd��Z	�Z
S)
�
TemplateErrorz"Baseclass for all template errors.N�message�returncst��|�dS�N)�super�__init__)�selfr��	__class__��3/usr/lib/python3/dist-packages/jinja2/exceptions.pyr

szTemplateError.__init__cCs|jr|jdSdS)Nr)�args�rrrrr
szTemplateError.messager)�__name__�
__module__�__qualname__�__doc__�t�Optional�strr
�propertyr�
__classcell__rrrrrs
rc@sbeZdZUdZdZejeed<	ddejej	edfdejeddfdd�Z
defd	d
�ZdS)�TemplateNotFoundz�Raised if a template does not exist.

    .. versionchanged:: 2.11
        If the given name is :class:`Undefined` and no message was
        provided, an :exc:`UndefinedError` is raised.
    Nr�namerrcCsNt�||�|durddlm}t||�r|��|}||_||_|g|_dS)Nrr)	�IOErrorr
�runtimer�
isinstance�_fail_with_undefined_errorrr�	templates)rrrrrrrr
s
zTemplateNotFound.__init__cCs
t|j�Sr)rrrrrr�__str__1s
zTemplateNotFound.__str__r)rrrrrrrr�__annotations__�Unionr
r"rrrrrs
	���
�rcsJeZdZdZ		d
dejejedfdejeddf�fdd	�
Z	�Z
S)�TemplatesNotFounda�Like :class:`TemplateNotFound` but raised if multiple templates
    are selected.  This is a subclass of :class:`TemplateNotFound`
    exception, so just catching the base exception will catch both.

    .. versionchanged:: 2.11
        If a name in the list of names is :class:`Undefined`, a message
        about it being undefined is shown rather than the empty string.

    .. versionadded:: 2.2
    rN�namesrrrcs�|dur/ddlm}g}|D]}t||�r|�|j�q|�|�qd�tt|��}d|��}t��	|r8|dnd|�t
|�|_dS)Nrrz, z(none of the templates given were found: ���)rrr�append�_undefined_message�join�maprr	r
�listr!)rr&rr�partsr�	parts_strrrrr
As

zTemplatesNotFound.__init__)rN)rrrrr�Sequencer$rrr
rrrrrr%5s
����r%cs^eZdZdZ		ddededejedejeddf
�fdd	�
Zdefd
d�Z	dd
�Z
�ZS)�TemplateSyntaxErrorzBRaised to tell the user that there is a problem with the template.Nr�linenor�filenamercs.t��|�||_||_||_d|_d|_dS)NF)r	r
r1rr2�source�
translated)rrr1rr2rrrr
[s
zTemplateSyntaxError.__init__cCs�|jr
t�t|j�Sd|j��}|jp|j}|r d|�d|��}t�t|j�d|g}|jdurOz|j�	�|jd}Wn	t
yEYn
w|�d|���d�
|�S)Nzline zFile "z", z  rz    �
)r4r�castrrr1r2rr3�
splitlines�
IndexErrorr(�stripr*)r�locationr�lines�linerrrr"ls
�
zTemplateSyntaxError.__str__cCs|j|j|j|j|jffSr)r
rr1rr2rrrr�
__reduce__�szTemplateSyntaxError.__reduce__)NN)rrrrr�intrrr
r"r=rrrrrr0Xs"������r0c@�eZdZdZdS)�TemplateAssertionErroraLike a template syntax error, but covers cases where something in the
    template caused an error at compile time that wasn't necessarily caused
    by a syntax error.  However it's a direct subclass of
    :exc:`TemplateSyntaxError` and has the same attributes.
    N�rrrrrrrrr@��r@c@r?)�TemplateRuntimeErrorzoA generic runtime error in the template engine.  Under some situations
    Jinja may raise this exception.
    NrArrrrrC�rBrCc@r?)�UndefinedErrorz<Raised if a template tries to operate on :class:`Undefined`.NrArrrrrD�rBrDc@r?)�
SecurityErrorzWRaised if a template tries to do something insecure if the
    sandbox is enabled.
    NrArrrrrE�rBrEc@r?)�FilterArgumentErrorzQThis error is raised if a filter was called with inappropriate
    arguments
    NrArrrrrF�rBrF)�typingr�
TYPE_CHECKINGrr�	Exceptionrr�LookupErrorrr%r0r@rCrDrErFrrrr�<module>s##3

Spamworldpro Mini