Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/jinja2/__pycache__/nodes.cpython-311.pyc



]jwy	dZddlZddlmZddlmZddlmZddlmZddlm	Z	dd	lm
Z
ejejej
ejejejejd
ZejejejdZejejejejejejdd
dZGddeZGdde Z!Gdde"Z#dZ$Gdde
e!e"Z%Gdde%Z&Gdde%Z'Gdde%Z(Gdde&Z)Gd d!e&Z*Gd"d#e&Z+Gd$d%e&Z,Gd&d'e&Z-Gd(d)e&Z.Gd*d+e&Z/Gd,d-e&Z0Gd.d/e&Z1Gd0d1e&Z2Gd2d3e&Z3Gd4d5e&Z4Gd6d7e&Z5Gd8d9e&Z6Gd:d;e&Z7Gd<d=e%Z8Gd>d?e8Z9Gd@dAe8Z:GdBdCe8Z;GdDdEe8Z<GdFdGe8Z=GdHdIe=Z>GdJdKe=Z?GdLdMe=Z@GdNdOe=ZAGdPdQe=ZBGdRdSe'ZCGdTdUe'ZDGdVdWe8ZEdXZFGdYdZe8ZGGd[d\e8ZHGd]d^e8ZIGd_d`e8ZJGdadbe8ZKGdcdde8ZLGdedfe8ZMGdgdhe8ZNGdidje'ZO	eOxjdldmPeQdneReeRezeRezDzz
c_Gdodpe9ZSGdqdre9ZTGdsdte9ZUGdudve9ZVGdwdxe9ZWGdydze9ZXGd{d|e9ZYGd}d~e9ZZGdde9Z[Gdde:Z\Gdde:Z]Gdde:Z^Gdde8Z_Gdde8Z`Gdde8ZaGdde8ZbGdde8ZcGdde8ZdGdde8ZeGdde8ZfGdde&ZgGdde&ZhGdde&ZiGdde&ZjGdde&ZkGddekZldZmeneme!_o[mdS)zAST nodes generated by the parser for the compiler. Also provides
some node tree helper functions used by the parser and compiler in order
to normalize nodes.
N)deque)Markup)izip)PY2)	text_type)with_metaclass)*///**%+-)notrrc
||vSNabs  l/builddir/build/BUILD/imunify360-venv-2.6.3/opt/imunify360/venv/lib/python3.11/site-packages/jinja2/nodes.py<lambda>r#s
qAvc
||vSrrrs  rrr$s
!1*r)eqnegtgteqltlteqinnotinceZdZdZdS)
Impossiblez8Raised if the node could not perform a requested action.N__name__
__module____qualname____doc__rrrr%r%(sBBBBrr%ceZdZdZdZdS)NodeTypezA metaclass for nodes that handles the field and attribute
    inheritance.  fields and attributes from the parent class are
    automatically forwarded to the child.cdD]}g}|t|d|d|||dt|dks
Jdt|tt	|ks
Jdt|||<|ddt||||S)	N)fields
attributesrrrz multiple inheritance not allowedzlayout conflictabstractF)	extendgetattrgetlensettuple
setdefaulttype__new__)mcsnamebasesdattrstorages      rr9zNodeType.__new__1s*	%	%DGNN758T266777NN155r??+++u::???$F???w<<3s7||#4#44446G444GnnAdGG	Z'''||Cua000rN)r'r(r)r*r9rrrr,r,,s---	1	1	1	1	1rr,c&eZdZdZddZdZdZdS)EvalContextzcHolds evaluation time information.  Custom attributes can be attached
    to it in extensions.
    Nc||_t|jr|||_n|j|_d|_dSNF)environmentcallable
autoescapevolatile)selfrD
template_names   r__init__zEvalContext.__init__BsI&K*++	5)44]CCDOO)4DO


rc4|jSr)__dict__copyrHs rsavezEvalContext.saveJs}!!###rcl|j|j|dSr)rLclearupdate)rHolds  rrevertzEvalContext.revertMs2

S!!!!!rr)r'r(r)r*rJrOrTrrrrArA=sP$$$"""""rrAc^|*|jtdt|jS|S)NzIif no eval context is passed, the node must have an attached environment.)rDRuntimeErrorrA)nodectxs  rget_eval_contextrYRs?
{#

4+,,,JrczeZdZdZdZdZdZdZddZddZ	d	Z
d
ZdZdd
Z
dZdZdZejZdZdZdS)NodeaBaseclass for all Jinja nodes.  There are a number of nodes available
    of different types.  There are four major types:

    -   :class:`Stmt`: statements
    -   :class:`Expr`: expressions
    -   :class:`Helper`: helper nodes
    -   :class:`Template`: the outermost wrapper node

    All nodes have fields and attributes.  Fields may be other nodes, lists,
    or arbitrary values.  Fields are passed to the constructor as regular
    positional arguments, attributes as keyword arguments.  Each node has
    two attributes: `lineno` (the line number of the node) and `environment`.
    The `environment` attribute is set at the end of the parsing process for
    all nodes automatically.
    rlinenorDTc	n|jrtd|rt|t|jkrn|jstd|jjztd|jjt|jt|jdkrdpdfzt
|j|D]\}}t||||jD]'}t|||	|d(|r,tdtt|zdS)Nz#abstract nodes are not instantiablez%r takes 0 argumentsz%r takes 0 or %d argument%srszunknown attribute %r)r0	TypeErrorr4r.	__class__r'rsetattrr/popnextiter)rHr.r/r;argr>s      rrJz
Node.__init__ssV=	CABBB
	)6{{c$+....{V#$:T^=T$TUUU1/DK((DK((A-5#;"$+v66
)
)	cdC((((O	<	<DD$
tT : :;;;;	M2T$z:J:J5K5KKLLL	M	MrNc#K|jD]=}||cxurn|||vs|*||vr&	|t||fV-#t$rY9wxYw>dS)aZThis method iterates over all fields that are defined and yields
        ``(key, value)`` tuples.  Per default all fields are returned, but
        it's possible to limit that to some fields by providing the `only`
        parameter or to exclude some using the `exclude` parameter.  Both
        should be sets or tuples of field names.
        N)r.r2AttributeError)rHexcludeonlyr;s    riter_fieldszNode.iter_fieldssK				DD((((((('D,?,?$d 3 333333%D				s7
AAc#K|||D]R\}}t|tr|D]}t|tr|V9t|tr|VSdS)zIterates over all direct child nodes of the node.  This iterates
        over all fields and yields the values of they are nodes.  If the value
        of a field is a list all the nodes in that list are returned.
        N)rl
isinstancelistr[)rHrjrk_itemns      riter_child_nodeszNode.iter_child_nodess
''66		GAt$%%
  A!!T**  D$''




		rc<||D]}|cSdS)ziFind the first node of a given type.  If no such node exists the
        return value is `None`.
        N)find_all)rH	node_typeresults   rfindz	Node.finds2mmI..		FMMM		rc#K|D]2}t||r|V||D]}|V3dS)zFind all the nodes of a given type.  If the type is a tuple,
        the check is performed for any of the tuple items.
        N)rsrnru)rHrvchildrws    rruz
Node.find_allss**,,		E%++
..33


		rct|g}|rM|}d|jvr||_|||M|S)aReset the context of a node and all child nodes.  Per default the
        parser will all generate nodes that have a 'load' context as it's the
        most common one.  This method is used in the parser to set assignment
        targets and other nodes to a store context.
        rX)rpopleftr.rXr1rs)rHrXtodorWs    rset_ctxzNode.set_ctxsidV}}	1<<>>D##KK--//000		1
rFct|g}|rV|}d|jvr|j|r||_|||V|S)z.Set the line numbers of the node and children.r])rr|r/r]r1rs)rHr]overrider}rWs     r
set_linenozNode.set_linenostdV}}	1<<>>D4?**;&(&"(DKKK--//000	1rct|g}|rD|}||_|||D|S)z"Set the environment for all nodes.)rr|rDr1rs)rHrDr}rWs    rset_environmentzNode.set_environments[dV}}	1<<>>D*DKK--//000	1rct|t|uoCt|t|kSr)r8r6rlrHothers  r__eq__zNode.__eq__sXDzzT%[[(
U43C3C3E3E-F-F%K
K
.
	
rc.||Sr)rrs  r__ne__zNode.__ne__s;;u%%%%rcpjjddfdjDdS)N(, c3DK|]}|dt|dVdS)=N)r2).0rgrHs  r	<genexpr>z Node.__repr__.<locals>.<genexpr>s;WWCgdC&>&>&>?WWWWWWr))rbr'joinr.rNs`r__repr__z
Node.__repr__sGN###IIWWWW4;WWWWWWW
	
rcVfdg|dS)Nct|ts$t|dSd|jjz|jsddSt|jD]\}}|rdt||}t|trbdt|D]'\}}|rd|(d|ddS)Nz	nodes.%s(rr[])
rnr[appendreprrbr'r.	enumerater2ro)rWidxfieldvaluerq_dumpbufs     rrzNode.dump.<locals>._dumpsJdD))


4::&&&JJ{T^%<<===;


3'44
!
!
U%JJt$$$e,,eT**!JJsOOO%.u%5%5$$	T-JJt,,,dJJsOOOOE%LLLLJJsOOOOOrr`)r)rHrrs @@rdumpz	Node.dumpsF						0
dwws||rNN)F)r'r(r)r*r.r/r0rJrlrsrxrur~rrrrobject__hash__rrrrrr[r[^s F*JHMMM,$				



&&&H


rr[ceZdZdZdZdS)StmtzBase node for all statements.TNr'r(r)r*r0rrrrr
s''HHHrrceZdZdZdZdS)Helperz,Nodes that exist in a specific context only.TNrrrrrrs66HHHrrceZdZdZdZdS)TemplatezjNode that represents a template.  This must be the outermost node that
    is passed to the compiler.
    bodyNr'r(r)r*r.rrrrrFFFrrceZdZdZdZdS)OutputzA node that holds multiple expressions which are then printed out.
    This is used both for the `print` statement and the regular template data.
    nodesNrrrrrrsFFFrrceZdZdZdZdS)Extendsz Represents an extends statement.)templateNrrrrrr&s**
FFFrrceZdZdZdZdS)ForaxThe for loop.  `target` is the target for the iteration (usually a
    :class:`Name` or :class:`Tuple`), `iter` the iterable.  `body` is a list
    of nodes that are used as loop-body, and `else_` a list of nodes for the
    `else` block.  If no else node exists it has to be an empty list.

    For filtered nodes an expression can be stored as `test`, otherwise `None`.
    )targetrfrelse_test	recursiveNrrrrrr,s FFFFrrceZdZdZdZdS)Ifz4If `test` is true, `body` is rendered, else `else_`.)rrelif_rNrrrrrr8s>>
/FFFrrceZdZdZdZdS)MacrozA macro definition.  `name` is the name of the macro, `args` a list of
    arguments and `defaults` a list of defaults if there are any.  `body` is
    a list of nodes for the macro body.
    )r;argsdefaultsrNrrrrrr>s
2FFFrrceZdZdZdZdS)	CallBlockzLike a macro without a name but a call instead.  `call` is called with
    the unnamed macro as `caller` argument this node holds.
    )callrrrNrrrrrrGs2FFFrrceZdZdZdZdS)FilterBlockzNode for filter sections.)rfilterNrrrrrrOs##
FFFrrceZdZdZdZdS)WithzSpecific node for with statements.  In older versions of Jinja the
    with statement was implemented on the base of the `Scope` node instead.

    .. versionadded:: 2.9.3
    )targetsvaluesrNrrrrrrUs+FFFrrceZdZdZdZdS)BlockzA node that represents a block.)r;rscopedNrrrrrr_s))
'FFFrrceZdZdZdZdS)Includez'A node that represents the include tag.)rwith_contextignore_missingNrrrrrres11
;FFFrrceZdZdZdZdS)Importz&A node that represents the import tag.)rrrNrrrrrrks00
3FFFrrceZdZdZdZdS)
FromImportaA node that represents the from import tag.  It's important to not
    pass unsafe names to the name attribute.  The compiler translates the
    attribute lookups directly into getattr calls and does *not* use the
    subscript callback of the interface.  As exported variables may not
    start with double underscores (which the parser asserts) this is not a
    problem for regular Jinja code, but if this node is used in an extension
    extra care must be taken.

    The list of names may contain tuples if aliases are wanted.
    )rnamesrNrrrrrrqs		3FFFrrceZdZdZdZdS)ExprStmtzAA statement that evaluates an expression and discards the result.rWNrrrrrrsKK
FFFrrceZdZdZdZdS)Assignz"Assigns an expression to a target.)rrWNrrrrrrs,,
FFFrrceZdZdZdZdS)AssignBlockzAssigns a block to a target.)rrrNrrrrrrs&&
)FFFrrc$eZdZdZdZddZdZdS)ExprzBaseclass for all expressions.TNct)anReturn the value of the expression as constant or raise
        :exc:`Impossible` if this was not possible.

        An :class:`EvalContext` can be provided, if none is given
        a default context is created which requires the nodes to have
        an attached environment.

        .. versionchanged:: 2.4
           the `eval_ctx` parameter was added.
        )r%rHeval_ctxs  ras_constz
Expr.as_constsllrcdS)z8Check if it's possible to assign something to this node.FrrNs r
can_assignzExpr.can_assignsurr)r'r(r)r*r0rrrrrrrsB((Hrrc&eZdZdZdZdZdZddZdS)BinExprz%Baseclass for all binary expressions.)leftrightNTcRt||}|jjr!|j|jjvrtt|j}	||j||j	|S#t$rtwxYwr)rYrD	sandboxedoperatorintercepted_binopsr%_binop_to_funcrrr	ExceptionrHrfs   rrzBinExpr.as_consts#D(33
&	
!1!DDD,,4=)	1TY''114:3F3Fx3P3PQQQ			,,	s;B

B&rr'r(r)r*r.rr0rrrrrrs=//
FHHrrc&eZdZdZdZdZdZddZdS)	UnaryExprz$Baseclass for all unary expressions.rNTc t||}|jjr!|j|jjvrtt|j}	||j|S#t$rtwxYwr)
rYrDrrintercepted_unopsr%
_uaop_to_funcrWrrrs   rrzUnaryExpr.as_consts#D(33
&	
!1!CCC,,$-(	1TY''11222			,,	s"A44B
rrrrrrrs=..
FHHrrceZdZdZdZdZdS)NameaLooks up a name or stores a value in a name.
    The `ctx` of the node can be one of the following values:

    -   `store`: store a value in the name
    -   `load`: load that name
    -   `param`: like `store` but if the name was defined as function parameter.
    )r;rXc|jdvS)N)truefalsenoneTrueFalseNoner;rNs rrzName.can_assignsy RRRrNr'r(r)r*r.rrrrrrs9FSSSSSrrceZdZdZdZdZdS)NSRefz)Reference to a namespace value assignment)r;r>cdS)NTrrNs rrzNSRef.can_assigns	
trNrrrrrrs.33
FrrceZdZdZdZdS)LiteralzBaseclass for literals.TNrrrrr	r	s!!HHHrr	c6eZdZdZdZddZeddZdS)ConstaAll constant values.  The parser will return this node for simple
    constants such as ``42`` or ``"foo"`` but it can be used to store more
    complex values such as lists too.  Only constants with a safe
    representation (objects where ``eval(repr(x)) == x`` is true).
    )rNc|j}trOt|tur9|jjdr'	|d}n#t$rYnwxYw|S)Nzcompiler.ascii_strascii)rrr8rrDpoliciesencodeUnicodeError)rHrrvs   rrzConst.as_constss
Z	RI%% )*>?&
YYw''



	sA
AAc\ddlm}||st||||S)zReturn a const object if the value is representable as
        constant value in the generated code, otherwise it will raise
        an `Impossible` exception.
        r)
has_safe_reprr\)compilerrr%)clsrr]rDrs     rfrom_untrustedzConst.from_untrusted
sI	,+++++}U##	,,s5[AAAArrr)r'r(r)r*r.rclassmethodrrrrrrs_F	B	B	B[	B	B	BrrceZdZdZdZddZdS)TemplateDatazA constant template string.)dataNct||}|jrt|jrt	|jS|jSr)rYrGr%rFrrrs  rrzTemplateData.as_constsI#D(33	,,	%$)$$$yrrr'r(r)r*r.rrrrrrs3%%
Frrc$eZdZdZdZddZdZdS)TuplezFor loop unpacking and some other things like multiple arguments
    for subscripts.  Like for :class:`Name` `ctx` specifies if the tuple
    is used for loading the names or storing.
    )itemsrXNcdt|tfd|jDS)Nc3BK|]}|VdSrrrxrs  rrz!Tuple.as_const.<locals>.<genexpr>2s/>>aQZZ))>>>>>>r)rYr6rrs `rrzTuple.as_const0s7#D(33>>>>4:>>>>>>rcH|jD]}|sdSdS)NFT)rr)rHrqs  rrzTuple.can_assign4s6J		D??$$
uu
trrr'r(r)r*r.rrrrrrr(sH
F????rrceZdZdZdZddZdS)Listz&Any list literal such as ``[1, 2, 3]``rNcJt|fd|jDS)Nc:g|]}|Srr"r#s  r
<listcomp>z!List.as_const.<locals>.<listcomp>Bs%999

8$$999r)rYrrs `rrz
List.as_const@s.#D(339999dj9999rrrrrrr(r(;s300
F::::::rr(ceZdZdZdZddZdS)DictzeAny dict literal such as ``{1: 2, 3: 4}``.  The items must be a list of
    :class:`Pair` nodes.
    r)Ncdt|tfd|jDS)Nc3BK|]}|VdSrr"r#s  rrz Dict.as_const.<locals>.<genexpr>Ns/==QAJJx((======r)rYdictrrs `rrz
Dict.as_constLs7#D(33====$*======rrrrrrr.r.Es9F>>>>>>rr.ceZdZdZdZddZdS)PairzA key, value pair for dicts.keyrNct||}|j||j|fSr)rYr5rrrs  rrz
Pair.as_constVs<#D(33x  **DJ,?,?,I,IIIrrrrrrr3r3Qs9&&
FJJJJJJrr3ceZdZdZdZddZdS)Keywordz>A key, value pair for keyword arguments where key is a string.r4Ncdt||}|j|j|fSr)rYr5rrrs  rrzKeyword.as_const`s.#D(33x,,X6666rrrrrrr8r8[s3HH
F777777rr8ceZdZdZdZddZdS)CondExprzZA conditional expression (inline if expression).  (``{{
    foo if bar else baz }}``)
    )rexpr1expr2Nct||}|j|r|j|S|jt|j|Sr)rYrrr<r=r%rs  rrzCondExpr.as_constlsi#D(339h''	1:&&x000:,,z""8,,,rrrrrrr;r;es9(F	-	-	-	-	-	-rr;cfd|jD}tfd|jD}|jK	||jn#t$rtwxYw|jK	|	|jn#t$rtwxYw||fS)Nc:g|]}|Srr"r#s  rr,z!args_as_const.<locals>.<listcomp>ys%444QAJJx  444rc3BK|]}|VdSrr"r#s  rrz args_as_const.<locals>.<genexpr>zs/<<1!**X&&<<<<<<r)
rr1kwargsdyn_argsr1rrr%
dyn_kwargsrR)rWrrrBs `  r
args_as_constrExs4444$)444D
<<<<<<<
<
<F} 	KK
..x889999			,,	"	MM$/228<<====			,,	<s-A++B-B==CceZdZdZdZddZdS)FilteraThis node applies a filter on an expression.  `name` is the name of
    the filter, the rest of the fields are the same as for :class:`Call`.

    If the `node` of a filter is `None` the contents of the last buffer are
    filtered.  Buffers are created by macros and filter blocks.
    rWr;rrBrCrDNct||}|js|jt|jj|j}|t|dddurt|jj	rt|ddrtt||\}}|d|j|t|dddur|d|n.t|dddur|d|j	||i|S#t$rtwxYw)N
contextfilterFTasyncfiltervariantrevalcontextfilterenvironmentfilter)rYrGrWr%rDfiltersr3r;r2is_asyncrEinsertrr)rHrfilter_rrBs     rrzFilter.as_constsx#D(33		 1,,"*..ty99?ggFF$NN,,(	W)5.
.
	,,$T844fAty))(334447/774??KK8$$$$
W15
9
9T
A
AKK4+,,,	7D+F+++			,,	s9EErrrrrrGrGs:JF""""""rrGceZdZdZdZddZdS)TestzApplies a test on an expression.  `name` is the name of the test, the
    rest of the fields are the same as for :class:`Call`.
    rHNcV|jj|j}|t	t||}t
||\}}|d|j	|	||i|S#t$rt	wxYw)Nr)rDtestsr3r;r%rYrErPrWrr)rHrrrrBs     rrz
Test.as_consts%))$)44<,,#D(33$T844fAty))(33444	4((((			,,	sBB(rrrrrrSrSs:JF





rrSceZdZdZdZdS)Calla/Calls an expression.  `args` is a list of arguments, `kwargs` a list
    of keyword arguments (list of :class:`Keyword` nodes), and `dyn_args`
    and `dyn_kwargs` has to be either `None` or a node that is used as
    node for dynamic positional (``*args``) or keyword (``**kwargs``)
    arguments.
    )rWrrBrCrDNrrrrrWrWs BFFFrrWc$eZdZdZdZddZdZdS)Getitemz@Get an attribute or item from an expression and prefer the item.)rWrgrXNc$t||}|jdkrt	|j|j||j|S#t$rtwxYwNload)	rYrXr%rDgetitemrWrrgrrs  rrzGetitem.as_consts#D(338v,,	#++	""8,,dh.?.?.I.I
			,,	sA
A66BcdSrCrrNs rrzGetitem.can_assignurrr&rrrrYrYsBJJ
#F				rrYc$eZdZdZdZddZdZdS)GetattrznGet an attribute or item from an expression that is a ascii-only
    bytestring and prefer the attribute.
    )rWr>rXNc|jdkrt	t||}|j|j||jS#t$rtwxYwr[)	rXr%rYrDr2rWrr>rrs  rrzGetattr.as_consts}8v,,	'h77H#++DI,>,>x,H,H$)TTT			,,	sAA##A<cdSrCrrNs rrzGetattr.can_assignr_rrr&rrrrarasH%FrraceZdZdZdZddZdS)Slicez_Represents a slice object.  This must only be used as argument for
    :class:`Subscript`.
    )startstopstepNct|fd}t||j||j||jS)Nc6|dS|Srr")objrs rconstzSlice.as_const.<locals>.consts{t<<)))r)rYslicerfrgrh)rHrrls ` rrzSlice.as_constsc#D(33	*	*	*	*	*
UU4:&&di(8(8%%	:J:JKKKrrrrrrreres?'FLLLLLLrreceZdZdZdZddZdS)ConcatzXConcatenates the list of expressions provided after converting them to
    unicode.
    rNcpt|dfd|jDS)Nr`c3\K|]&}t|V'dSr)rrr#s  rrz"Concat.as_const.<locals>.<genexpr>s7KK1yH!5!566KKKKKKr)rYrrrs `rrzConcat.as_consts;#D(33wwKKKK
KKKKKKrrrrrrroros?FLLLLLLrroceZdZdZdZddZdS)CompareziCompares an expression with some other expressions.  `ops` must be a
    list of :class:`Operand`\s.
    )expropsNc&t||}|j|x}}	|jD]>}|j|}t	|j||}|sdS|}?n#t$rtwxYw|SrC)rYrtrru_cmpop_to_funcoprr%)rHrrwrrx	new_values      rrzCompare.as_const)s#D(33++H555
	h
"
"G,,X66	'.ui@@! 55!
"			,,	
sAA51A55Brrrrrrsrs"s9FrrsceZdZdZdZdS)Operandz$Holds an operator and an expression.)rxrtNrrrrr{r{<s..
FFFrr{Tz(
The following operators are available: rc# K|]	}d|zV
dS)z``%s``Nr)rr$s  rrrDs:


qL





rceZdZdZdZdS)Mulz(Multiplies the left with the right node.r
Nr'r(r)r*rrrrr~r~Ks22HHHrr~ceZdZdZdZdS)Divz#Divides the left by the right node.rNrrrrrrQs--HHHrrceZdZdZdZdS)FloorDivzjDivides the left by the right node and truncates conver the
    result into an integer by truncating.
    rNrrrrrrWsHHHrrceZdZdZdZdS)AddzAdd the left to the right node.rNrrrrrr_s))HHHrrceZdZdZdZdS)Subz&Subtract the right from the left node.rNrrrrrres00HHHrrceZdZdZdZdS)ModzLeft modulo right.rNrrrrrrksHHHrrceZdZdZdZdS)PowzLeft to the power of right.r
Nrrrrrrqs%%HHHrrceZdZdZdZddZdS)AndzShort circuited AND.andNct||}|j|o|j|SrrYrrrrs  rrzAnd.as_const|s<#D(33y!!(++M
0C0CH0M0MMrrr'r(r)r*rrrrrrrws9HNNNNNNrrceZdZdZdZddZdS)OrzShort circuited OR.orNct||}|j|p|j|Srrrs  rrzOr.as_consts<#D(33y!!(++Ltz/B/B8/L/LLrrrrrrrrs9HMMMMMMrrceZdZdZdZdS)NotzNegate the expression.rNrrrrrrs  HHHrrceZdZdZdZdS)NegzMake the expression negative.rNrrrrrrs''HHHrrceZdZdZdZdS)Posz8Make the expression positive (noop for most expressions)rNrrrrrrsBBHHHrrceZdZdZdZdS)EnvironmentAttributezLoads an attribute from the environment object.  This is useful for
    extensions that want to call a callback stored on the environment.
    rNrrrrrrrrrceZdZdZdZdS)ExtensionAttributezReturns the attribute of an extension bound to the environment.
    The identifier is the identifier of the :class:`Extension`.

    This node is usually constructed by calling the
    :meth:`~jinja2.ext.Extension.attr` method on an extension.
    )
identifierr;Nrrrrrrs$FFFrrceZdZdZdZdS)ImportedNamea&If created with an import name the import name is returned on node
    access.  For example ``ImportedName('cgi.escape')`` returns the `escape`
    function from the cgi module on evaluation.  Imports are optimized by the
    compiler so there is no need to assign them to local variables.
    )
importnameNrrrrrrsFFFrrceZdZdZdZdZdS)InternalNamea7An internal name in the compiler.  You cannot create these nodes
    yourself but the parser provides a
    :meth:`~jinja2.parser.Parser.free_identifier` method that creates
    a new identifier for you.  This identifier is not available from the
    template and is not threated specially by the compiler.
    rc td)NzKCan't create internal names.  Use the `free_identifier` method on a parser.rarNs rrJzInternalName.__init__s
4

	
rN)r'r(r)r*r.rJrrrrrs4F




rrceZdZdZdZddZdS)MarkSafez:Mark the wrapped expression as safe (wrap it as `Markup`).rtNcpt||}t|j|Sr)rYrrtrrs  rrzMarkSafe.as_consts/#D(33di((22333rrrrrrrrs3DD
F444444rrceZdZdZdZddZdS)MarkSafeIfAutoescapezMark the wrapped expression as safe (wrap it as `Markup`) but
    only if autoescaping is active.

    .. versionadded:: 2.5
    rNct||}|jrt|j|}|jrt
|S|Sr)rYrGr%rtrrFr)rHrrts   rrzMarkSafeIfAutoescape.as_constsW#D(33	,,y!!(++	 $<<rrrrrrrrs9FrrceZdZdZdS)ContextReferenceaPReturns the current template context.  It can be used like a
    :class:`Name` node, with a ``'load'`` ctx and will return the
    current :class:`~jinja2.runtime.Context` object.

    Here an example that assigns the current template name to a
    variable named `foo`::

        Assign(Name('foo', ctx='store'),
               Getattr(ContextReference(), 'name'))

    This is basically equivalent to using the
    :func:`~jinja2.contextfunction` decorator when using the
    high-level API, which causes a reference to the context to be passed
    as the first argument to a function.
    Nr&rrrrrsrrceZdZdZdS)DerivedContextReferencezReturn the current template context including locals. Behaves
    exactly like :class:`ContextReference`, but includes local
    variables, such as from a ``for`` loop.

    .. versionadded:: 2.11
    Nr&rrrrrsrrceZdZdZdS)ContinuezContinue a loop.Nr&rrrrrsrrceZdZdZdS)Breakz
Break a loop.Nr&rrrrr
srrceZdZdZdZdS)ScopezAn artificial scope.rNrrrrrrs
FFFrrceZdZdZdZdS)OverlayScopeaAn overlay scope for extensions.  This is a largely unoptimized scope
    that however can be used to introduce completely arbitrary variables into
    a sub scope from a dictionary or dictionary like object.  The `context`
    field has to evaluate to a dictionary object.

    Example usage::

        OverlayScope(context=self.call_method('get_context'),
                     body=[...])

    .. versionadded:: 2.10
    )contextrNrrrrrrs!FFFrrceZdZdZdZdS)EvalContextModifiera
Modifies the eval context.  For each option that should be modified,
    a :class:`Keyword` has to be added to the :attr:`options` list.

    Example to change the `autoescape` setting::

        EvalContextModifier(options=[Keyword('autoescape', Const(True))])
    )optionsNrrrrrr%sFFFrrceZdZdZdZdS)ScopedEvalContextModifierzModifies the eval context and reverts it later.  Works exactly like
    :class:`EvalContextModifier` but will only modify the
    :class:`~jinja2.nodes.EvalContext` for nodes in the :attr:`body`.
    rNrrrrrr1s
FFFrrc td)Nzcan't create custom node typesr)rrBs  r_failing_newr;s
4
5
55r)pr*rcollectionsr
markupsafer_compatrrrr	multruedivfloordivpowmodaddsubrnot_posnegrrrrger lerwrr%r8r,rrArYr[rrrrrrrrrrrrrrrrrrrrrrrr	rrrr(r.r3r8r;rErGrSrWrYrarerorsr{rsortedr5r~rrrrrrrrrrrrrrrrrrrrrrrrrrstaticmethodr9rrr<module>rs
######
		


,			!
HLx|LL
+
+
+K
+K


$
$		CCCCCCCC11111t111""""""&"""*			iiiii>>(F++iiiX4TtTd	F	F	F	F	F$	F	F	F0000000022222D22222222222     $   +++++4+++(((((D(((<<<<<d<<<44444T44433333333t     T   *****$***4.d,,SSSSS4SSS




D


d B B B B BG B B BF7G&:::::7:::	>	>	>	>	>7	>	>	>JJJJJ6JJJ77777f777-----t---&&,,,,,T,,,^4.BBBBB4BBBd(d(LLLLLDLLL$	L	L	L	L	LT	L	L	Ld4fOOBTYY

S((33}+=+==N@S@SS


	
	
FFOO''w''''NNNNN'NNNMMMMMMMM)))4$$$$$$$$4




4


"44444t4444&t$dtDD!!!!!4!!!"					$			 3666 <--LLr
Back to Directory File Manager