Files
old-parkingkoncept/parkingkonceptvenv/lib/python3.7/site-packages/jinja2/__pycache__/runtime.cpython-37.pyc

245 lines
24 KiB
Plaintext
Raw Normal View History

2019-11-17 12:44:16 +01:00
B
<00>/<2F>]<5D>k<00>@s<>dZddlZddlmZddlmZddlmZmZddl m
Z
m Z m Z m Z mZmZmZmZmZddlmZmZmZddlmZmZmZmZmZmZmZmZm Z d d
d d d dddddddddgZ!eZ"dd<18>Z#e$<24>Z%e$<24>Z&dd<11>Z'dd<12>Z(d6dd<1C>Z)Gdd
<EFBFBD>d
e$<24>Z*dd<1F>Z+Gd d!<21>d!e,<2C>Z-e fd"d#<23>Z.Gd$d%<25>d%ee-<2D><01>Z/e j0<6A>1e/<2F>Gd&d'<27>d'e$<24>Z2Gd(d)<29>d)e$<24>Z3Gd*d <09>d e3<65>Z4eGd+d,<2C>d,e$<24><03>Z5Gd-d <0B>d e$<24>Z6eGd.d/<2F>d/e$<24><03>Z7d7d0d1<64>Z8eGd2d3<64>d3e7<65><03>Z9eGd4d5<64>d5e7<65><03>Z:e7`;e9`;e:`;dS)8z}
jinja2.runtime
~~~~~~~~~~~~~~
Runtime helpers.
:copyright: (c) 2017 by the Jinja Team.
:license: BSD.
<EFBFBD>N)<01>chain)<01>
MethodType)<02> EvalContext<78>_context_function_types) <09>Markup<75> soft_unicode<64>escape<70>missing<6E>concat<61> internalcode<64>object_type_repr<70>evalcontextfunction<6F> Namespace)<03>UndefinedError<6F>TemplateRuntimeError<6F>TemplateNotFound) <09>imap<61> text_type<70> iteritems<6D>implements_iterator<6F>implements_to_string<6E> string_types<65>PY2<59>with_metaclass<73>abc<62> LoopContext<78>TemplateReference<63>Macrorrr r
r<00> markup_join<69> unicode_join<69> to_string<6E>identityrrcCs|S)N<>)<01>xr"r"<00>2/tmp/pip-install-c3kgu56x/Jinja2/jinja2/runtime.py<70><lambda>%<00>r%cCsLg}tt|<00>}x4|D],}|<01>|<03>t|d<01>rtd<02><01>t||<02><02>SqWt|<01>S)z@Concatenation that escapes if necessary and converts to unicode.Z__html__<5F>)rr<00>append<6E>hasattrr<00>joinrr
)<04>seq<65>buf<75>iterator<6F>argr"r"r$r+s



cCsttt|<00><02>S)z4Simple args to unicode conversion and concatenation.)r
rr)r+r"r"r$r6sc
Csl|dkr i}|r|}nt|pdf|<03>}|r\|r6t|<07>}x$t|<06>D]\}} | tk r@| ||<q@W|<00>||||<02>S)z(Internal helper to for context creation.Nr")<04>dictrr Z context_class)
<EFBFBD> environmentZ template_name<6D>blocks<6B>varsZshared<65>globals<6C>locals<6C>parent<6E>key<65>valuer"r"r$<00> new_context;s 
r8c@s(eZdZdZdd<03>Zdd<05>Zdd<07>ZdS) rzThe `self` in templates.cCs
||_dS)N)<01>_TemplateReference__context)<02>self<6C>contextr"r"r$<00>__init__SszTemplateReference.__init__cCs|jj|}t||j|d<01>S)Nr)r9r1<00>BlockReference)r:<00>namer1r"r"r$<00> __getitem__Vs zTemplateReference.__getitem__cCsd|jj|jjfS)Nz<%s %r>)<04> __class__<5F>__name__r9r>)r:r"r"r$<00>__repr__ZszTemplateReference.__repr__N)rA<00>
__module__<EFBFBD> __qualname__<5F>__doc__r<r?rBr"r"r"r$rPscCs t|d|<00>S)N<>__func__)<01>getattr)r#r"r"r$<00> _get_funcasrHc@seZdZdd<02>ZdS)<04> ContextMetac Csvt<00>||||<03>}|dkr|St|j<03>}ttj<03>}t|j<05>}ttj<05>}||k r\||kr\d|_n||krr||krrd|_|S)Nr"T)<08>type<70>__new__rH<00>resolve<76>Context<78>resolve_or_missing<6E>_legacy_resolve_mode<64>_fast_resolve_mode) <09>clsr><00>bases<65>d<>rvrLZdefault_resolverNZdefault_resolve_or_missingr"r"r$rKgs



zContextMeta.__new__N)rArCrDrKr"r"r"r$rIesrIcCs,||jkr|j|S||jkr(|j|S|S)N)r2r5)r;r6r r"r"r$rN}s




rNc@s<>eZdZdZdZdZdd<04>Zdd<06>Zd$dd <09>Zd
d <0B>Z d d <0A>Z
dd<0F>Z dd<11>Z e dd<13><00>Zd%dd<15>Zdd<17>Zed<18>Zed<19>Zed<1A>Zer<>ed<1B>Zed<1C>Zed<1D>Z[dd<1F>Zd d!<21>Zd"d#<23>ZdS)&rMa<>The template context holds the variables of a template. It stores the
values passed to the template and also the names the template exports.
Creating instances is neither supported nor useful as it's created
automatically at various stages of the template evaluation and should not
be created by hand.
The context is immutable. Modifications on :attr:`parent` **must not**
happen and modifications on :attr:`vars` are allowed from generated
template code only. Template filters and global functions marked as
:func:`contextfunction`\s get the active context passed as first argument
and are allowed to access the context read-only.
The template context supports read only dict operations (`get`,
`keys`, `values`, `items`, `iterkeys`, `itervalues`, `iteritems`,
`__getitem__`, `__contains__`). Additionally there is a :meth:`resolve`
method that doesn't fail with a `KeyError` but returns an
:class:`Undefined` object for missing variables.
FcCs\||_i|_||_t|j|<03>|_t<05>|_||_tdd<02>t |<04>D<00><01>|_
|j rXt t |<00>|_ dS)Ncss|]\}}||gfVqdS)Nr")<03>.0<EFBFBD>k<>vr"r"r$<00> <genexpr><3E>sz#Context.__init__.<locals>.<genexpr>)r5r2r0r<00>eval_ctx<74>set<65> exported_varsr>r/rr1rPrrN)r:r0r5r>r1r"r"r$r<<00>szContext.__init__cCsXy$|j|}|<03>|<02>d}||Wn$tk
rH|jjd|dd<04>SXt||||<04>S)zRender a parent block.<2E>z#there is no parent block called %r.<2E>super)r>)r1<00>index<65> LookupErrorr0<00> undefinedr=)r:r><00>currentr1r^r"r"r$r]<00>s
 
z Context.superNcCs"y||Stk
r|SXdS)zfReturns an item from the template context, if it doesn't exist
`default` is returned.
N)<01>KeyError)r:r6<00>defaultr"r"r$<00>get<65>sz Context.getcCs6|jrt||<01>}n
|<00>|<01>}|tkr2|jj|d<01>S|S)z<>Looks up a variable like `__getitem__` or `get` but returns an
:class:`Undefined` object with the name of the name looked up.
)r>)rOrNr r0r`)r:r6rTr"r"r$rL<00>s  
zContext.resolvecCs,|jr"|<00>|<01>}t|t<03>rt}|St||<01>S)zxResolves a variable like :meth:`resolve` but returns the
special `missing` value if it cannot be found.
)rOrL<00>
isinstance<EFBFBD> Undefinedr rN)r:r6rTr"r"r$rN<00>s 

zContext.resolve_or_missingcst<00>fdd<02><08>jD<00><01>S)z+Get a new dict with the exported variables.c3s|]}|<01>j|fVqdS)N)r2)rUrV)r:r"r$rX<00>sz'Context.get_exported.<locals>.<genexpr>)r/r[)r:r")r:r$<00> get_exported<65>szContext.get_exportedcCs(|js |jS|js|jSt|jf|j<00>S)z<>Return the complete context as dict including the exported
variables. For optimizations reasons this might not return an
actual copy so be careful with using it.
)r2r5r/)r:r"r"r$<00>get_all<6C>s
zContext.get_allcOs<>d}t|d<02>r2|j}xdD]}t||<06>r|}PqWt|t<03>r<>t|dd<05>rT|f|}n2t|dd<05>rn|jf|}nt|dd<05>r<>|jf|}y
|||<03>Stk
r<EFBFBD>|j<06>d<08>SXd S)
z<EFBFBD>Call the callable with the arguments and keyword arguments
provided but inject the active context or environment as first
argument if the callable is a :func:`contextfunction` or
:func:`environmentfunction`.
T<>__call__)<03>contextfunctionr <00>environmentfunctionrjrr rkzGvalue was undefined because a callable raised a StopIteration exceptionN) r)rirerrGrYr0<00> StopIterationr`)Z_Context__selfZ _Context__obj<62>args<67>kwargsZ__traceback_hide__<5F>fnZfn_typer"r"r$<00>call<6C>s$



     
z Context.callcCsDt|j|ji|<00><03>dd|<01>}|j|_|j<05>dd<04>t|j<05>D<00><01>|S)z<>Internal helper function to create a derived context. This is
used in situations where the system needs a new context in the same
template that is independent.
TNcss|]\}}|t|<02>fVqdS)N)<01>list)rUrVrWr"r"r$rXsz"Context.derived.<locals>.<genexpr>)r8r0r>rhrYr1<00>updater)r:r4r;r"r"r$<00>derived s
 zContext.derivedcs$<00>fdd<02>}tt<01><00>j|_<02>|_|S)Ncst|<00><01><00><00><02>S)N)rGrh)r:)<01>methr"r$r%r&zContext._all.<locals>.<lambda>)rGr/rErA)rt<00>proxyr")rtr$<00>_alls z Context._all<6C>keys<79>values<65>items<6D>iterkeys<79>
itervaluesrcCs||jkp||jkS)N)r2r5)r:r>r"r"r$<00> __contains__(szContext.__contains__cCs|<00>|<01>}|tkrt|<01><01>|S)zTLookup a variable or raise `KeyError` if the variable is
undefined.
)rNr rb)r:r6<00>itemr"r"r$r?+s
zContext.__getitem__cCsd|jjt|<00><03><00>|jfS)Nz <%s %s of %r>)r@rA<00>reprrhr>)r:r"r"r$rB4s
zContext.__repr__)N)N)rArCrDrErOrPr<r]rdrLrNrgrhr rprsrvrwrxryrrzr{rr|r?rBr"r"r"r$rM<00>s0
   "
 rMc@s0eZdZdZdd<03>Zedd<05><00>Zedd<07><00>ZdS) r=z"One block on a template reference.cCs||_||_||_||_dS)N)r><00>_context<78>_stack<63>_depth)r:r>r;<00>stack<63>depthr"r"r$r<BszBlockReference.__init__cCsF|jdt|j<02>kr,|jjjd|jdd<04>St|j|j|j|jd<00>S)zSuper the block.r\z#there is no parent block called %r.r])r>)r<><00>lenr<6E>rr0r`r>r=)r:r"r"r$r]Hs zBlockReference.supercCs,t|j|j|j<03><01>}|jjjr(t|<01>}|S)N)r
r<>r<>rrY<00>
autoescaper)r:rTr"r"r$riRs
zBlockReference.__call__N) rArCrDrEr<<00>propertyr]r rir"r"r"r$r=?s
r=c@s<>eZdZdZeZeZeZdZ ddd<05>Z
dd<07>Z dd <09>Z e d
d <0B><00>Ze d d <0B><00>Ze d d <0B><00>Ze dd <0B><00>Ze dd <0B><00>Ze dd <0B><00>Ze dd<12><00>Ze dd<14><00>Zdd<16>Zedd<18><00>ZeZ[dd<1A>ZdS)<1C>LoopContextBasez%A loop context for dynamic iteration.NrcCs"||_||_d|_||_t|_dS)N<><4E><EFBFBD><EFBFBD><EFBFBD>)<06>
_undefined<EFBFBD>_recurse<73>index0<78>depth0r <00>_last_checked_value)r:r`<00>recurser<65>r"r"r$r<bs
zLoopContextBase.__init__cGs|s td<01><01>||jt|<01>S)z7Cycles among the arguments with the current loop index.zno items for cycling given)<03> TypeErrorr<72>r<>)r:rmr"r"r$<00>cycleiszLoopContextBase.cyclecGs|j|kr||_dSdS)z9Checks whether the value has changed since the last call.TF)r<>)r:r7r"r"r$<00>changedos
zLoopContextBase.changedcCs
|jdkS)Nr)r<>)r#r"r"r$r%vr&zLoopContextBase.<lambda>cCs
|jtkS)N)<02>_after<65>_last_iteration)r#r"r"r$r%wr&cCs
|jdS)Nr\)r<>)r#r"r"r$r%xr&cCs |j|jS)N)<02>lengthr<68>)r#r"r"r$r%yr&cCs |j|jS)N)r<>r^)r#r"r"r$r%zr&cCs
|jdS)Nr\)r<>)r#r"r"r$r%{r&cCs|jtkr|<00>d<01>S|jS)Nzthere is no previous item)<03>_before<72>_first_iterationr<6E>)r:r"r"r$<00>previtem}s

zLoopContextBase.previtemcCs|jtkr|<00>d<01>S|jS)Nzthere is no next item)r<>r<>r<>)r:r"r"r$<00>nextitem<65>s

zLoopContextBase.nextitemcCs|jS)N)r<>)r:r"r"r$<00>__len__<5F>szLoopContextBase.__len__cCs(|jdkrtd<01><01>|<00>||j|jd<00>S)NzMTried to call non recursive loop. Maybe you forgot the 'recursive' modifier.r\)r<>r<>r<>)r:<00>iterabler"r"r$<00>loop<6F>s
zLoopContextBase.loopcCsd|jj|j|jfS)Nz
<%s %r/%r>)r@rAr^r<>)r:r"r"r$rB<00>szLoopContextBase.__repr__)Nr)rArCrDrEr<>r<><00>_currentr<74>r<><00>_lengthr<r<>r<>r<><00>first<73>lastr^ZrevindexZ revindex0r<30>r<>r<>r<>r r<>rirBr"r"r"r$r<>Zs*
         r<>c@s2eZdZd dd<04>Zedd<06><00>Zdd<08>Zd d
<EFBFBD>ZdS) rNrc CsVt<00>||||<04>t|<01>|_yt|<01>|_Wnttfk
rFd|_YnX|<00><08>|_ dS)N)
r<EFBFBD>r<<00>iter<65> _iteratorr<72>r<>r<><00>AttributeError<6F>
_safe_nextr<EFBFBD>)r:r<>r`r<>r<>r"r"r$r<<00>s
 zLoopContext.__init__cCs<|jdkr6t|j<02>}t|<01>|_|jd}t|<01>||_|jS)N<>)r<><00>tupler<65>r<>r<>r<>)r:r<>Ziterations_doner"r"r$r<><00>s 



zLoopContext.lengthcCst|<00>S)N)<01>LoopContextIterator)r:r"r"r$<00>__iter__<5F>szLoopContext.__iter__cCs$y
t|j<01>Stk
rtSXdS)N)<04>nextr<74>rlr<>)r:r"r"r$r<><00>s
zLoopContext._safe_next)Nr)rArCrDr<r<>r<>r<>r<>r"r"r"r$r<00>s
 c@s,eZdZdZdZdd<04>Zdd<06>Zdd<08>Zd S)
r<EFBFBD>z The iterator for a loop context.)r;cCs
||_dS)N)r;)r:r;r"r"r$r<<00>szLoopContextIterator.__init__cCs|S)Nr")r:r"r"r$r<><00>szLoopContextIterator.__iter__cCsH|j}|jd7_|jtkr$t<04><00>|j|_|j|_|<01><07>|_|j|fS)Nr\)r;r<>r<>r<>rlr<>r<>r<>)r:<00>ctxr"r"r$<00>__next__<5F>s

zLoopContextIterator.__next__N)rArCrDrE<00> __slots__r<r<>r<>r"r"r"r$r<><00>s
r<>c@s:eZdZdZd dd<04>Zeedd<06><00><01>Zdd<08>Zd d
<EFBFBD>Z dS) rzWraps a macro function.Nc CsV||_||_t|<04>|_||_||_||_||_||_d|k|_ |dkrL|j
}||_ dS)N<>caller) <0C> _environment<6E>_funcr<63><00>_argument_countr><00> arguments<74> catch_kwargs<67> catch_varargsr<73><00>explicit_callerr<72><00>_default_autoescape) r:r0<00>funcr>r<>r<>r<>r<>Zdefault_autoescaper"r"r$r<<00>s

zMacro.__init__c Os<>|r*t|dt<01>r*|dj}|dd<00>}n|j}t|d|j<05><00>}t|<04>}d}||jkr<>xht|jt|<04>d<00><00>D]F\}}y|<02> |<08>} Wnt
k
r<EFBFBD>t } YnX|dkr<>d}|<04> | <09>qpWn|j }|jr<>|s<>|<02> dd<00>}
|
dkr<>|jjddd<07>}
|<04> |
<EFBFBD>|j<11>r|<04> |<02>n8|<02>rFd|k<06>r,td|j<00><01>td |jtt|<02><01>f<00><01>|j<16>rd|<04> ||jd<00><00>n(t|<01>|jk<04>r<>td
|jt|j<08>f<00><01>|<00>||<03>S) Nrr\Fr<46>TzNo caller defined)r>zamacro %r was invoked with two values for the special caller argument. This is most likely a bug.z%macro %r takes no keyword argument %rz+macro %r takes not more than %d argument(s))rerr<>r<>rqr<>r<><00> enumerater<65><00>poprbr r(r<>r<>r<>r`r<>r<>r>r<>r<>r<><00>_invoke) r:rmrnr<>r<><00>offZ found_caller<65>idxr>r7r<>r"r"r$ri<00>sJ

 

 
 

zMacro.__call__cCs|j|<01>}|rt|<03>}|S)z=This method is being swapped out by the async implementation.)r<>r)r:r<>r<>rTr"r"r$r<><s
z Macro._invokecCs$d|jj|jdkrdpt|j<02>fS)Nz<%s %s>Z anonymous)r@rAr>r~)r:r"r"r$rBCszMacro.__repr__)N)
rArCrDrEr<r r rir<>rBr"r"r"r$r<00>s 
Kc@s<>eZdZdZdZdedefdd<05>Zedd<07><00>Z edd <09><00>Z
e Z Z Z ZZZZZZZZZZZZZZZZZZZ Z!Z"Z#Z$Z%d
d <0B>Z&d d <0A>Z'dd<0F>Z(dd<11>Z)dd<13>Z*dd<15>Z+dd<17>Z,e,Z-dd<19>Z.dS)rfazThe default undefined type. This undefined type can be printed and
iterated over, but every other access will raise an :exc:`jinja2.exceptions.UndefinedError`:
>>> foo = Undefined(name='foo')
>>> str(foo)
''
>>> not foo
True
>>> foo + 42
Traceback (most recent call last):
...
jinja2.exceptions.UndefinedError: 'foo' is undefined
)<04>_undefined_hint<6E>_undefined_obj<62>_undefined_name<6D>_undefined_exceptionNcCs||_||_||_||_dS)N)r<>r<>r<>r<>)r:<00>hint<6E>objr><00>excr"r"r$r<\szUndefined.__init__cOsl|jdkrX|jtkr d|j}q^t|jt<05>sBdt|j<01>|jf}q^dt|j<01>|jf}n|j}|<00>|<03><01>dS)z{Regular callback function for undefined objects that raises an
`jinja2.exceptions.UndefinedError` on call.
Nz%r is undefinedz%s has no element %rz%r has no attribute %r)r<>r<>r r<>rerr r<>)r:rmrnr<>r"r"r$<00>_fail_with_undefined_errorbs

    z$Undefined._fail_with_undefined_errorcCs |dd<01>dkrt|<01><01>|<00><01>S)Nr<4E><00>__)r<>r<>)r:r>r"r"r$<00> __getattr__xszUndefined.__getattr__cCst|<00>t|<01>kS)N)rJ)r:<00>otherr"r"r$<00>__eq__<5F>szUndefined.__eq__cCs |<00>|<01> S)N)r<>)r:r<>r"r"r$<00>__ne__<5F>szUndefined.__ne__cCs tt|<00><01>S)N)<02>idrJ)r:r"r"r$<00>__hash__<5F>szUndefined.__hash__cCsdS)Nr'r")r:r"r"r$<00>__str__<5F>szUndefined.__str__cCsdS)Nrr")r:r"r"r$r<><00>szUndefined.__len__ccsdS)Nr")r:r"r"r$r<><00>szUndefined.__iter__cCsdS)NFr")r:r"r"r$<00> __nonzero__<5F>szUndefined.__nonzero__cCsdS)Nrfr")r:r"r"r$rB<00>szUndefined.__repr__)/rArCrDrEr<>r rr<r r<>r<><00>__add__<5F>__radd__<5F>__mul__<5F>__rmul__Z__div__Z__rdiv__<5F> __truediv__<5F> __rtruediv__<5F> __floordiv__<5F> __rfloordiv__<5F>__mod__<5F>__rmod__<5F>__pos__<5F>__neg__rir?<00>__lt__<5F>__le__<5F>__gt__<5F>__ge__<5F>__int__<5F> __float__<5F> __complex__<5F>__pow__<5F>__rpow__<5F>__sub__<5F>__rsub__r<5F>r<>r<>r<>r<>r<>r<><00>__bool__rBr"r"r"r$rfJs  lrfcs`<00>dkr,ddl}|<02>t<02><01><02><02>|<02>tj<06><01><00>dkr8t<07><01>fdd<04><08>G<00><00><01>fdd<06>d<06><01>}|S)akGiven a logger object this returns a new undefined class that will
log certain failures. It will log iterations and printing. If no
logger is given a default logger is created.
Example::
logger = logging.getLogger(__name__)
LoggingUndefined = make_logging_undefined(
logger=logger,
base=Undefined
)
.. versionadded:: 2.8
:param logger: the logger to use. If not provided, a default logger
is created.
:param base: the base class to add logging functionality to. This
defaults to :class:`Undefined`.
Nrcsn|jdkrX|jtkr d|j}q^t|jt<05>sBdt|j<01>|jf}q^dt|j<01>|jf}n|j}<01><00>d|<01>dS)Nz%s is undefinedz%s has no element %sz%s has no attribute %szTemplate variable warning: %s)r<>r<>r r<>rerr <00>warning)Zundefr<66>)<01>loggerr"r$<00> _log_message<67>s

    z,make_logging_undefined.<locals>._log_messagecsfeZdZ<02><01>fdd<02>Z<03><00>fdd<04>Z<04><00>fdd<06>ZerT<72><00>fdd<08>Z<07><00>fd d
<EFBFBD>Zn<0E><00>fd d <0C>Z d S)z0make_logging_undefined.<locals>.LoggingUndefinedc
sPy<12>j|f|<01>|<02>S|jk
rJ}z<18><01>dt|<03><01>|<03>Wdd}~XYnXdS)NzTemplate variable error: %s)r<>r<><00>error<6F>str)r:rmrn<00>e)<02>baser<65>r"r$r<><00>s
zKmake_logging_undefined.<locals>.LoggingUndefined._fail_with_undefined_errorcs<00><01>|<00>}<01>|<00>|S)N)r<>)r:rT)r<>r<>r"r$r<><00>s
z8make_logging_undefined.<locals>.LoggingUndefined.__str__cs<00><01>|<00>}<01>|<00>|S)N)r<>)r:rT)r<>r<>r"r$r<><00>s
z9make_logging_undefined.<locals>.LoggingUndefined.__iter__cs<00><01>|<00>}<01>|<00>|S)N)r<>)r:rT)r<>r<>r"r$r<><00>s
z<make_logging_undefined.<locals>.LoggingUndefined.__nonzero__cs<00><01>|<00>}<01>|<00>|S)N)<01> __unicode__)r:rT)r<>r<>r"r$r<><00>s
z<make_logging_undefined.<locals>.LoggingUndefined.__unicode__cs<00><01>|<00>}<01>|<00>|S)N)r<>)r:rT)r<>r<>r"r$r<><00>s
z9make_logging_undefined.<locals>.LoggingUndefined.__bool__N)
rArCrDr<>r<>r<>rr<>r<>r<>r")r<>r<>r<>r"r$<00>LoggingUndefined<65>sr<>)<08>logging<6E> getLoggerrA<00>
addHandler<EFBFBD> StreamHandler<65>sys<79>stderrrf)r<>r<>r<>r<>r")r<>r<>r<>r$<00>make_logging_undefined<65>s
 #r<>c@seZdZdZdZdd<04>ZdS)<06>DebugUndefinedaAn undefined that returns the debug info when printed.
>>> foo = DebugUndefined(name='foo')
>>> str(foo)
'{{ foo }}'
>>> not foo
True
>>> foo + 42
Traceback (most recent call last):
...
jinja2.exceptions.UndefinedError: 'foo' is undefined
r"cCs<|jdkr2|jtkrd|jSdt|j<01>|jfSd|jS)Nz{{ %s }}z{{ no such element: %s[%r] }}z!{{ undefined value printed: %s }})r<>r<>r r<>r )r:r"r"r$r<>s



zDebugUndefined.__str__N)rArCrDrEr<>r<>r"r"r"r$r<><00>s r<>c@s6eZdZdZdZejZZZ Z
Z Z Z ZdS)<04>StrictUndefinedasAn undefined that barks on print and iteration as well as boolean
tests and all kinds of comparisons. In other words: you can do nothing
with it except checking if it's defined using the `defined` test.
>>> foo = StrictUndefined(name='foo')
>>> str(foo)
Traceback (most recent call last):
...
jinja2.exceptions.UndefinedError: 'foo' is undefined
>>> not foo
Traceback (most recent call last):
...
jinja2.exceptions.UndefinedError: 'foo' is undefined
>>> foo + 42
Traceback (most recent call last):
...
jinja2.exceptions.UndefinedError: 'foo' is undefined
r"N)rArCrDrEr<>rfr<>r<>r<>r<>r<>r<>r<>r<>r<>r"r"r"r$r<> sr<>)NNNN)NN)<rEr<><00> itertoolsr<00>typesrZ jinja2.nodesrrZ jinja2.utilsrrrr r
r r r rZjinja2.exceptionsrrrZjinja2._compatrrrrrrrrr<00>__all__r r!<00>objectr<74>r<>rrr8rrHrJrIrNrM<00>Mapping<6E>registerr=r<>rr<>rrfr<>r<>r<>r<>r"r"r"r$<00><module>
sP  ,, 
 8 F' m U
Q