Files
intellecton/venv/lib/python3.12/site-packages/jinja2/__pycache__/debug.cpython-312.pyc
T

62 lines
6.4 KiB
Plaintext
Raw Normal View History

Ë
j™ã
óJddlZddlZddlmZddlmZddlmZddlm Z ddlm
Z
ejrddl m
Z
dd ejed
efd Zd ed
ejededed
ef
dZdej(eej*fd
ej,eej*ffdZy)éN)ÚCodeType)Ú
TracebackTypeé)ÚTemplateSyntaxError)Ú
internal_code)Úmissing)ÚContextÚsourceÚreturncó@tj«\}}}tjt|«}tjt
|«}t
|t«rR|jsFd|_||_ |jd«t|d|jxsd|j«}n |j}g}|µ|jj t"vr
|j}Œ+|jj$j'd«}|E|j)|j*«}t|||j|«}|j-|«n|j-|«|j}|Œµd}t/|«D] }||_|}Œ
|j|«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Ú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) r
Ú_Ú exc_valueÚtbÚstackÚtemplaterÚfake_tbrs úO/home/antigravity/intellecton/venv/lib/python3.12/site-packages/jinja2/debug.pyÚrewrite_traceback_stackr)stô—||“~Ñ€A€y”} 0€IÜ

˜rÓ "€Bä1¸)×:NÒ:NØ#ˆ ÔØ!ˆ Ôð × Ñ  ÔØ t˜Y×>°;À ×@PÑ@Pó
ð
Z‰Zˆà €Eð
ˆ.ð ;‰;× Ñ ¤Ñ ˆBØ à—;‘;×,Ð-AÓà Ð Ø×6°r·|±|ÓDˆFÜ$ °H×4EÑ4EÀvÓNˆGØ L‰L˜Õ L‰L˜Ô à
Z‰Zˆð!
‰.ð$€Gôu‹oòˆØˆŒ
Øðð × #  r#r$rrcóD|2t|jj«}|jdd«ni}|||dœ}t d|dz
zdz|d«}d}|A|jj
j }|d k(rd
}n|jd «rd |d
d}tjdk\r|j|¬«}n¥t|j|j|j|j|j |j"|j$|j&|j(|j*||j,|j.|j0|j2«} t5|||«y#t6$r$tj8«dj:cYSwxYw)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.
__jinja_exception__)Ú__name__Ú__file__r,ú
rzraise __jinja_exception__Úexecr&Úrootztop-level template codeÚblock_zblock é)éé)Úco_nameé)Úget_template_localsrÚf_localsÚpopÚcompilerr6Ú
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_cellvarsr0rrr) r#r$rrÚlocalsÚglobalsÚcodeÚlocationÚfunctions r(rrLð
€~ô% R§[¡[×%9Ñ%9Ó:ˆØ
Ð(¨$ÕˆðØØ€Gô Ø ˜
ÑÐ9¸8ÀVó€Dð €Hà €~Ø—;‘;×à  Ø0‰HØ