/opt/cloudlinux/venv/lib/python3.11/site-packages/jinja2/__pycache__
NameSizeModeActions
async_utils.cpython-311.pyc42200644editdlrm
bccache.cpython-311.pyc197100644editdlrm
compiler.cpython-311.pyc1105770644editdlrm
constants.cpython-311.pyc15740644editdlrm
debug.cpython-311.pyc94310644editdlrm
defaults.cpython-311.pyc17400644editdlrm
environment.cpython-311.pyc803800644editdlrm
exceptions.cpython-311.pyc86250644editdlrm
ext.cpython-311.pyc444610644editdlrm
filters.cpython-311.pyc750640644editdlrm
idtracking.cpython-311.pyc196360644editdlrm
lexer.cpython-311.pyc356980644editdlrm
loaders.cpython-311.pyc328230644editdlrm
meta.cpython-311.pyc57190644editdlrm
nativetypes.cpython-311.pyc77140644editdlrm
nodes.cpython-311.pyc645000644editdlrm
optimizer.cpython-311.pyc28700644editdlrm
parser.cpython-311.pyc593140644editdlrm
runtime.cpython-311.pyc523510644editdlrm
sandbox.cpython-311.pyc188380644editdlrm
tests.cpython-311.pyc92610644editdlrm
utils.cpython-311.pyc412850644editdlrm
visitor.cpython-311.pyc57000644editdlrm
_identifier.cpython-311.pyc19720644editdlrm
__init__.cpython-311.pyc25720644editdlrm
Edit: /opt/cloudlinux/venv/lib/python3.11/site-packages/jinja2/__pycache__/sandbox.cpython-311.pyc (18838B)
§ "EŠ°Û¨mãóV—UdZddlZddlZddlZddlmZddlmZddlm Z ddl m Z ddl m Z ddl mZd d lmZd d lmZd d lmZd d lmZejdejdejf¬¦«ZdZe¦«Zejeed<e¦«Z ejeed<ddhZ!ddhZ"ddhZ#ej$e%gd¢¦«fej&e%gd¢¦«fej'e%gd¢¦«fe e%gd¢¦«ffZ(ej)ej)ej*ej+efdfed<dejd ej,efd!„Z-d"e.d e/fd#„Z0d$ed efd%„Z1d&ejd'ed e2fd(„Z3d&ejd'ed e2fd)„Z4Gd*„d+e¦«Z5Gd,„d-e5¦«Z6Gd.„d/e ¦«Z7Gd0„d1e7e ¦«Z8dS)2z„A sandbox layer that ensures unsafe operations cannot be performed. Useful when the template itself comes from an untrusted source. éN)Úformatter_field_name_split)Úabc)Údeque)Ú Formatter)ÚEscapeFormatter)ÚMarkupé)Ú Environment)Ú SecurityError)ÚContext)Ú UndefinedÚF.)Úboundi †ÚUNSAFE_FUNCTION_ATTRIBUTESÚUNSAFE_METHOD_ATTRIBUTESÚgi_frameÚgi_codeÚcr_frameÚcr_codeÚag_codeÚag_frame)ÚaddÚclearÚdifference_updateÚdiscardÚpopÚremoveÚsymmetric_difference_updateÚupdate)rrÚpopitemÚ setdefaultr)ÚappendÚreverseÚinsertÚsortÚextendr) r"Ú appendleftrr&Ú extendleftrÚpopleftrÚrotateÚ _mutable_specÚcallableÚreturncó¤—t|tjtjf¦«r |jdvrdS|j}t|t ¦«r|SdS)N)ÚformatÚ format_map)Ú isinstanceÚtypesÚ MethodTypeÚBuiltinMethodTypeÚ__name__Ú__self__Ústr)r,Úobjs ú`/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/jinja2/sandbox.pyÚinspect_format_methodr:Ss\€Ý Ø•5Ô#¥UÔ%<Ð=ñ ô ðà Ô Ð":Ð :Ð :؈tà Ô €Cå�#•sÑÔðØˆ à ˆ4óÚargscóx—t|Ž}t|¦«tkrtdt›d�¦«‚|S)zWA range that can't generate ranges with a length of more than MAX_RANGE items. z@Range too big. The sandbox blocks ranges larger than MAX_RANGE (z).)ÚrangeÚlenÚ MAX_RANGEÚ OverflowError)r<Úrngs r9Ú safe_rangerCasN€õ �ˆ,€Cå ˆ3�x„x•)ÒÐÝð )Ý$ð )ð )ð )ñ ô ð ð €Jr;Úfcó—d|_|S)z�Marks a function or method as unsafe. .. code-block: python @unsafe def delete(self): pass T)Úunsafe_callable)rDs r9ÚunsaferGps€ð€AÔØ €Hr;r8Úattrcó°—t|tj¦«r |tvrdS�nt|tj¦«r|tvs |t vrdSnìt|t ¦«r |dkrdSnÎt|tjtjtj f¦«rdSt|tj ¦«r |tvrdSnuttd¦«r&t|tj ¦«r |tvrdSn:ttd¦«r%t|tj¦«r |t vrdS| d¦«S)a´Test if the attribute given is an internal python attribute. For example this function returns `True` for the `func_code` attribute of python objects. This is useful if the environment method :meth:`~SandboxedEnvironment.is_safe_attribute` is overridden. >>> from jinja2.sandbox import is_internal_attribute >>> is_internal_attribute(str, "mro") True >>> is_internal_attribute(str, "upper") False TÚmroÚ CoroutineTypeÚAsyncGeneratorTypeÚ__)r1r2Ú FunctionTyperr3rÚtypeÚCodeTypeÚ TracebackTypeÚ FrameTypeÚ GeneratorTypeÚUNSAFE_GENERATOR_ATTRIBUTESÚhasattrrKÚUNSAFE_COROUTINE_ATTRIBUTESrLÚ!UNSAFE_ASYNC_GENERATOR_ATTRIBUTESÚ startswith)r8rHs r9Úis_internal_attributerY}sh€õ�#•uÔ)Ñ*Ô*ðØ Õ-Ð -Ð -Ø�4ñ .å �C�Ô)Ñ *Ô *ðØ Õ-Ð -Ð -°Õ9QÐ1QÐ1QØ�4ð2Rå �C�Ñ Ô ðØ �5Š=ˆ=Ø�4ð å �C�%œ.­%Ô*=½u¼ÐOÑ PÔ Pð ØˆtÝ �C�Ô,Ñ -Ô -ð Ø Õ.Ð .Ð .Ø�4ð /å •˜Ñ (Ô (ð­Z¸½UÔ=PÑ-QÔ-QðØ Õ.Ð .Ð .Ø�4ð /å •Ð,Ñ -Ô -ðµ*Ø �UÔ %ñ3ô3ðð Õ4Ð 4Ð 4Ø�4Ø �?Š?˜4Ñ Ô Ð r;cóL—tD]\}}t||¦«r||vcSŒdS)aðThis function checks if an attribute on a builtin mutable object (list, dict, set or deque) or the corresponding ABCs would modify it if called. >>> modifies_known_mutable({}, "clear") True >>> modifies_known_mutable({}, "keys") False >>> modifies_known_mutable([], "append") True >>> modifies_known_mutable([], "index") False If called with an unsupported object, ``False`` is returned. >>> modifies_known_mutable("foo", "upper") False F)r+r1)r8rHÚtypespecrGs r9Úmodifies_known_mutabler\¢sD€õ&*ð"ð"ш�&Ý �c˜8Ñ $Ô $ð "ؘ6�>Ð !Ð !Ð !ð "à ˆ5r;c ó‡—eZdZUdZdZejejejej ej ej ej dœZ ejeejejejgejffed<ejejdœZejeejejgejffed<e¦«Zejeed<e¦«Zejeed<d ejd ejd d fˆfd „ Zdejdedejd efd„Zdejd efd„Zdededejdejd ejf d„Z dededejd ejfd„Z!dejdej"eejfd ej"eje#ffd„Z$dejded ej"eje#ffd„Z%dejded e#fd„Z& d&ded ej'ejd fd ejeejfd!ej(ejd ef d"„Z)d#ed$ejd ejd ejd ejf d%„Z*ˆxZ+S)'ÚSandboxedEnvironmentaéThe sandboxed environment. It works like the regular environment but tells the compiler to generate sandboxed code. Additionally subclasses of this environment may override the methods that tell the runtime what attributes or functions are safe to access. If the template tries to access insecure code a :exc:`SecurityError` is raised. However also other exceptions may occur during the rendering so the caller has to ensure that all exceptions are caught. T)ú+ú-Ú*ú/z//z**ú%Údefault_binop_table)r_r`Údefault_unop_tableÚintercepted_binopsÚintercepted_unopsr<Úkwargsr-NcóЕ—t¦«j|i|¤Žt|jd<|j ¦«|_|j ¦«|_dS)Nr>) ÚsuperÚ__init__rCÚglobalsrdÚcopyÚ binop_tablereÚ unop_table)Úselfr<rhÚ __class__s €r9rkzSandboxedEnvironment.__init__üs\ø€Ø�‰ŒÔ˜$Ð) &Ð)Ð)Ð)Ý *ˆŒ �WÑØÔ3×8Ò8Ñ:Ô:ˆÔØÔ1×6Ò6Ñ8Ô8ˆŒˆˆr;r8rHÚvaluecóN—| d¦«pt||¦« S)aYThe sandboxed environment will call this method to check if the attribute of an object is safe to access. Per default all attributes starting with an underscore are considered private as well as the special attributes of internal python objects as returned by the :func:`is_internal_attribute` function. Ú_)rXrY)rpr8rHrrs r9Úis_safe_attributez&SandboxedEnvironment.is_safe_attributes)€ð—O’O CÑ(Ô(ÐLÕ,AÀ#ÀtÑ,LÔ,LÐMÐMr;cóH—t|dd¦«pt|dd¦« S)zêCheck if an object is safely callable. By default callables are considered safe unless decorated with :func:`unsafe`. This also recognizes the Django convention of setting ``func.alters_data = True``. rFFÚ alters_data)Úgetattr)rpr8s r9Úis_safe_callablez%SandboxedEnvironment.is_safe_callable s0€õ �CÐ*¨EÑ 2Ô 2Ð Xµg¸cÀ=ÐRWÑ6XÔ6Xð ð r;ÚcontextÚoperatorÚleftÚrightcó0—|j|||¦«S)z÷For intercepted binary operator calls (:meth:`intercepted_binops`) this function is executed instead of the builtin operator. This can be used to fine tune the behavior of certain operators. .. versionadded:: 2.6 )rn)rprzr{r|r}s r9Ú call_binopzSandboxedEnvironment.call_binops€ð*ˆtÔ Ô)¨$°Ñ6Ô6Ð6r;Úargcó.—|j||¦«S)zõFor intercepted unary operator calls (:meth:`intercepted_unops`) this function is executed instead of the builtin operator. This can be used to fine tune the behavior of certain operators. .. versionadded:: 2.6 )ro)rprzr{r€s r9Ú call_unopzSandboxedEnvironment.call_unop!s€ð)ˆtŒ˜xÔ(¨Ñ-Ô-Ð-r;Úargumentcó‚— ||S#ttf$rŒt|t¦«rt t|¦«} t ||¦«}| |||¦«r|cYS| ||¦«cYS#t$rYnwxYw#t$rYnwxYwYnwxYw|  ||¬¦«S)z(Subscribe an object from sandboxed code.©r8Úname) Ú TypeErrorÚ LookupErrorr1r7rxruÚunsafe_undefinedÚAttributeErrorÚ ExceptionÚ undefined)rpr8rƒrHrrs r9ÚgetitemzSandboxedEnvironment.getitem*s€ð DØ�x”=Ð øÝ�;Ð'ð Dð Dð Dݘ(¥CÑ(Ô(ð Dð Dݘx™=œ=�DðDÝ '¨¨TÑ 2Ô 2˜ð ×1Ò1°#°xÀÑGÔGð)Ø#(˜L˜L˜LØ#×4Ò4°S¸(ÑCÔCÐCÐCÐCøõ *ðððØ˜ðøøøøõ !ðððØ�Dðøøøøøð  Døøøð�~Š~ #¨Hˆ~Ñ5Ô5Ð5sV‚ Š&B'±BÁBÁB'Á,B' BÂB'ÂBÂB' B!ÂB' B!Â!B'Â&B'Ú attributecó— t||¦«}| |||¦«r|S| ||¦«S#t$r% ||cYS#tt f$rYnwxYwYnwxYw| ||¬¦«S)z€Subscribe an object from sandboxed code and prefer the attribute. The attribute passed *must* be a bytestring. r…)rxrur‰rŠr‡rˆrŒ)rpr8rŽrrs r9rxzSandboxedEnvironment.getattrAsÁ€ð 9ݘC Ñ+Ô+ˆEð×%Ò% c¨9°eÑ<Ô<ð Ø� Ø×(Ò(¨¨iÑ8Ô8Ð 8øõð ð ð ð Ø˜9”~Ð%Ð%Ð%øÝ�{Ð+ð ð ð Ø�ð øøøØ�ð  øøøð�~Š~ #¨Iˆ~Ñ6Ô6Ð6s5‚AÁ A0Á AÁA0ÁA*Á'A0Á)A*Á*A0Á/A0cóp—| d|›dt|¦«j›d�||t¬¦«S)z1Return an undefined object for unsafe attributes.zaccess to attribute z of z object is unsafe.)r†r8Úexc)rŒrOr5r )rpr8rŽs r9r‰z%SandboxedEnvironment.unsafe_undefinedRsR€à�~Š~ð 9 9ð 9ð 9Ý�S‘ ” Ô"ð 9ð 9ð 9àØÝð ñ ô ð r;Ús.Ú format_funccóx—t|t¦«rt||j¬¦«}nt |¦«}|�O|jdkrDt |¦«dks|r%tdt |¦«|duz›d�¦«‚|d}d}| |||¦«}t|¦«|¦«S) z…If a format call is detected, then this is routed through this method so that our safety sandbox can be used for it. )ÚescapeNr0r z(format_map() takes exactly one argument z givenr©) r1rÚSandboxedEscapeFormatterr•ÚSandboxedFormatterr5r?r‡ÚvformatrO)rpr’r<rhr“Ú formatterÚrvs r9Ú format_stringz"SandboxedEnvironment.format_string\s×€õ �a�Ñ Ô ð 1Ý0°¸a¼hÐGÑGÔGˆIˆIå*¨4Ñ0Ô0ˆIà Ð " {Ô';¸|Ò'KÐ'KÝ�4‰yŒy˜AŠ~ˆ~ ˆ~ÝðAݘD™ œ  V°4Ð%7Ñ8ðAðAðAñôðð ˜!”WˆF؈Dà × Ò ˜q $¨Ñ /Ô /ˆØ�t�A‰wŒw�r‰{Œ{Ðr;Ú_SandboxedEnvironment__contextÚ_SandboxedEnvironment__objcóÄ—t|¦«}|�| ||||¦«S| |¦«st|›d�¦«‚|j|g|¢Ri|¤ŽS)z#Call an object from sandboxed code.Nz is not safely callable)r:rœryr Úcall)Ú_SandboxedEnvironment__selfr�ržr<rhÚfmts r9r zSandboxedEnvironment.callys‚€õ$ EÑ*Ô*ˆØ ˆ?Ø×'Ò'¨¨T°6¸5ÑAÔAÐ Að×&Ò& uÑ-Ô-ð EÝ 5Ð CÐ CÐ CÑDÔDÐ D؈yŒ~˜eÐ5 dÐ5Ð5Ð5¨fÐ5Ð5Ð5r;©N),r5Ú __module__Ú __qualname__Ú__doc__Ú sandboxedr{rÚsubÚmulÚtruedivÚfloordivÚpowÚmodrdÚtÚDictr7ÚCallableÚAnyÚ__annotations__ÚposÚnegreÚ frozensetrfÚ FrozenSetrgrkÚboolruryr rr‚ÚUnionr r�rxr‰ÚTupleÚOptionalrœr Ú __classcell__©rqs@r9r^r^»s›ø€€€€€€ððð€Ið Œ\Ø Œ\Ø Œ\Ø Ô ØÔØŒlØ Œ\ðKðKИœ  Q¤Z°´¸¼°ÀÄÐ0EÔ%FÐ FÔGððñðŒ\Ø Œ\ðCðCИœ˜s A¤J°´¨w¸¼¨~Ô$>Ð>Ô?ððñð&,5¨9©;¬;Иœ  CÔ(Ð6Ð6Ñ6ð+4¨)©+¬+Ð�q”{ 3Ô'Ð5Ð5Ñ5ð9˜aœeð9¨q¬uð9¸ð9ð9ð9ð9ð9ð9ð N Q¤UðN°#ðN¸a¼eðNÈðNðNðNðNð   A¤Eð  ¨dð  ð  ð  ð  ð 7Øð 7Ø*-ð 7Ø56´Uð 7ØCDÄ5ð 7à Œð 7ð 7ð 7ð 7ð. ð.°Cð.¸a¼eð.ÈÌð.ð.ð.ð.ð6Ø”5ð6Ø$%¤G¨C°´¨JÔ$7ð6à Œ�”˜ Ð!Ô "ð6ð6ð6ð6ð.7˜1œ5ð7¨Sð7°Q´W¸Q¼UÀIÐ=MÔ5Nð7ð7ð7ð7ð"  A¤Eð °cð ¸ið ð ð ð ð/3ð ðà ððŒg�a”e˜S�jÔ!ðð”�s˜AœE�zÔ"ð ð ”Z ¤ Ô+ð ð ð ðððð:6àð6ðŒuð6ðŒuð 6ð ”%ð 6ð Œð 6ð6ð6ð6ð6ð6ð6ð6r;r^cóH‡—eZdZdZdejdedejdefˆfd„ ZˆxZ S)ÚImmutableSandboxedEnvironmentzÓWorks exactly like the regular `SandboxedEnvironment` but does not permit modifications on the builtin mutable objects `list`, `set`, and `dict` by using the :func:`modifies_known_mutable` function. r8rHrrr-cóp•—t¦« |||¦«sdSt||¦« S)NF)rjrur\)rpr8rHrrrqs €r9ruz/ImmutableSandboxedEnvironment.is_safe_attribute’s9ø€Ý‰wŒw×(Ò(¨¨d°EÑ:Ô:ð Ø�5å)¨#¨tÑ4Ô4Ð4Ð4r;) r5r¤r¥r¦r®r±r7r·rur»r¼s@r9r¾r¾Œsgø€€€€€ððð 5 Q¤Uð5°#ð5¸a¼eð5Èð5ð5ð5ð5ð5ð5ð5ð5ð5ð5r;r¾c 󶇗eZdZdedejddfˆfd„ Zdedejejdej eejfdej ejeffd„Z ˆxZ S) r˜Úenvrhr-Nc óH•—||_t¦«jdi|¤ŽdS)Nr–)Ú_envrjrk)rprÁrhrqs €r9rkzSandboxedFormatter.__init__šs-ø€ØˆŒ Ø�‰ŒÔÐ"Ð"˜6Ð"Ð"Ð"Ð"Ð"r;Ú field_namer<cóÞ—t|¦«\}}| |||¦«}|D]>\}}|r|j ||¦«}Œ#|j ||¦«}Œ?||fSr£)rÚ get_valuerÃrxr�) rprÄr<rhÚfirstÚrestr8Úis_attrÚis r9Ú get_fieldzSandboxedFormatter.get_fieldžs�€õ1°Ñ<Ô<‰ ˆˆtØ�nŠn˜U D¨&Ñ1Ô1ˆØð 0ð 0‰JˆG�QØð 0Ø”i×'Ò'¨¨QÑ/Ô/��à”i×'Ò'¨¨QÑ/Ô/��Ø�EˆzÐr;) r5r¤r¥r r®r±rkr7ÚSequenceÚMappingr¹rËr»r¼s@r9r˜r˜™s«ø€€€€€ð#˜Kð#°1´5ð#¸Tð#ð#ð#ð#ð#ð#ð Øð Ø%&¤Z°´Ô%6ð Ø@AÄ È#ÈqÌuÈ*Ô@Uð à Œ�”˜�Ô ð ð ð ð ð ð ð ð r;r˜có—eZdZdS)r—N)r5r¤r¥r–r;r9r—r—«s€€€€€Ø€Dr;r—)9r¦r{r2Útypingr®Ú_stringrÚ collectionsrrÚstringrÚ markupsaferrÚ environmentr Ú exceptionsr Úruntimer r ÚTypeVarr°r±rr@ÚsetrÚSetr7r²rrTrVrWÚ MutableSetrµÚMutableMappingÚMutableSequencer+r¹ÚTyper¶rºr:Úintr>rCrGr·rYr\r^r¾r˜r—r–r;r9úrßsÊððððð€€€Ø € € € ØÐÐÐØ.Ð.Ð.Ð.Ð.Ð.ØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐà&Ð&Ð&Ð&Ð&Ð&ØÐÐÐÐÐà$Ð$Ð$Ð$Ð$Ð$Ø%Ð%Ð%Ð%Ð%Ð%ØÐÐÐÐÐØÐÐÐÐÐà €A„Iˆc˜œ C¨¬ JÔ/Ð0Ñ0Ô0€ð € ð*-¨©¬Ð˜AœE #œJÐ.Ð.Ñ.ð(+ s¡u¤uИ!œ% œ*Ð,Ð,Ñ,ð *¨9Ð5Ðð *¨9Ð5Ðð&/° Ð$;Ð!ð ŒØˆ ð ð ð ñ ô ðð ÔØˆ ÐEÐEÐEÑFÔFðð ÔØˆ ÐMÐMÐMÑNÔNðð Øˆ ð ð ð ñ ô ðð1(B€ ˆqŒw�q”w˜qœv q¤{°3Ô'7Ð7Ô8¸#Ð=Ô>ð(ð(ñ(ðV  A¤Jð °1´:¸c´?ð ð ð ð ð �cð ˜eð ð ð ð ð  ˆað  �Að  ð  ð  ð  ð"!˜qœuð"!¨Cð"!°Dð"!ð"!ð"!ð"!ðJ ¤ð¨Sð°Tððððð2N6ðN6ðN6ðN6ðN6˜;ñN6ôN6ðN6ðb 5ð 5ð 5ð 5ð 5Ð$8ñ 5ô 5ð 5ððððð˜ñôðð$ ð ð ð ð Ð1°?ñ ô ð ð ð r;