/usr/local/lib/python3.6/site-packages/jinja2/__pycache__
NameSizeModeActions
async_utils.cpython-36.pyc24350644editdlrm
bccache.cpython-36.pyc130970644editdlrm
compiler.cpython-36.pyc543690644editdlrm
constants.cpython-36.pyc14960644editdlrm
debug.cpython-36.pyc53440644editdlrm
defaults.cpython-36.pyc12410644editdlrm
environment.cpython-36.pyc523970644editdlrm
exceptions.cpython-36.pyc54980644editdlrm
ext.cpython-36.pyc262740644editdlrm
filters.cpython-36.pyc497540644editdlrm
idtracking.cpython-36.pyc111250644editdlrm
lexer.cpython-36.pyc199830644editdlrm
loaders.cpython-36.pyc202170644editdlrm
meta.cpython-36.pyc37460644editdlrm
nativetypes.cpython-36.pyc48050644editdlrm
nodes.cpython-36.pyc411930644editdlrm
optimizer.cpython-36.pyc18610644editdlrm
parser.cpython-36.pyc276350644editdlrm
runtime.cpython-36.pyc328630644editdlrm
sandbox.cpython-36.pyc116960644editdlrm
tests.cpython-36.pyc64820644editdlrm
utils.cpython-36.pyc272170644editdlrm
visitor.cpython-36.pyc38390644editdlrm
_identifier.cpython-36.pyc18500644editdlrm
__init__.cpython-36.pyc18650644editdlrm
Edit: /usr/local/lib/python3.6/site-packages/jinja2/__pycache__/debug.cpython-36.pyc (5344B)
3 ^TBg.! @sddlZddlZddlZddlmZddlmZddlmZddl m Z ddl m Z ej rfddl mZdejeed d d Zeejeeeed d dZejeejfejeejfdddZejdkreejeedddZnejdkrJy ddlZWn.ek r.eejeedddZYnXeejeedddZn2ddlZGdddejZ eejeedddZdS)N)CodeType) TracebackType)TemplateSyntaxError) internal_code)missing)Context)sourcereturnc Cs tj\}}}tjt|}tjt|}t|trf|j rfd|_||_ |j dt |d|j p\d|j }n|j}g}xn|dk r|jjtkr|j}qr|jjjd}|dk r|j|j}t |||j |}|j|n |j||j}qrWd}xt|D]}t||}qW|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 Z__jinja_template__)sysexc_infotcast BaseExceptionr isinstancerZ translatedr with_tracebackfake_tracebackfilenamelinenotb_nexttb_framef_coder f_globalsgetZget_corresponding_lineno tb_linenoappendreversed tb_set_next) r _ exc_valuetbstacktemplaterZfake_tbrr#./tmp/pip-build-0s3hx122/Jinja2/jinja2/debug.pyrewrite_traceback_stacks4          r%)rr rrr c Cs|dk r"t|jj}|jddni}|||d}td|dd|d}d}|dk r|jjj}|d krnd }n|jd rd |d d}tj dkr|j |d}n@t |j |j |j|j|j|j|j|j|j|j||j|j|j|j}yt|||Wn tk rtjdjSXdS)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 codeZblock_zblock )co_name)r-r.)get_template_localsrf_localspopcompilerr/ startswithr version_inforeplacer co_argcountco_kwonlyargcount co_nlocals co_stacksizeco_flagsco_code co_constsco_names co_varnames co_filenameco_firstlineno co_lnotab co_freevars co_cellvarsr*rr r) rr rrlocalsglobalscodelocationfunctionr#r#r$rLsL    r) real_localsr c Cs|jd}|dk r |jj}ni}i}x|jD]x\}}|jd s2|tkrPq2y|jdd\}}}t|}Wntk rw2YnX|j|d d} | |kr2||f||<q2Wx6|jD]*\}\}}|tkr|j |dq|||<qW|S) zlBased on the runtime locals, get the context that would be available at that point in the template. contextNZl_rr0rr)rM) rget_allcopyitemsr5rsplitint ValueErrorr3) rKctxdataZlocal_overridesnamevaluerZ depth_strdepthZ cur_depthr#r#r$r1s*   r1r-)r rr cCs ||_|S)N)r)r rr#r#r$rsrPyPycCs|S)Nr#)r rr#r#r$rscsfdd}tj||dS)Ncs$|jdkr|jddkrS|jS)N__getattribute__rr)opnameargsZdelegate)op)rr#r$ controllersztb_set_next..controller)obj)tputilZ make_proxy)r rr_r#)rr$rs c@s*eZdZdejejfdejfgZdS) _CTracebackZ PyObject_HEADrN) r' __module__ __qualname__ctypesc_byteobject __sizeof__ py_object_fields_r#r#r#r$rbsrbcCsbtjt|}|jdk r:tj|j}tj|_tjj||dk r^tj|}tjj|||_|S)N) rb from_addressidrreri pythonapiZ Py_DecRefZ Py_IncRef)r rZc_tbZ c_tb_nextr#r#r$rs      )N)r-rY)!platformr Ztypingr typesrr exceptionsrutilsrrZ TYPE_CHECKINGZruntimerOptionalstrrr%rRrMappingZAnyDictr1r6rpython_implementationra ImportErrorre Structurerbr#r#r#r$s8      >H(,