/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__/bccache.cpython-311.pyc (19710B)
§ Ó¨–B ¹ãó²—dZddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl m Z ddl mZddlmZe jrddlZddlmZGd„d ej¦«Zd Zd ejed ¦«zejejdd zejdzd ¦«zZGd„d¦«ZGd„d¦«ZGd„de¦«ZGd„de¦«ZdS)a The optional bytecode cache system. This is useful if you have very complex template situations and the compilation of all those templates slows down your application too much. Situations where this is useful are often forking web applications that are initialized on the first request. éN)Úsha1)ÚBytesIO)ÚCodeTypeé)Ú Environmentc óN—eZdZdedefd„Zddededejeddfd„Z dS) Ú_MemcachedClientÚkeyÚreturncó—dS©N©)Úselfr s ú`/builddir/build/BUILD/cloudlinux-venv-1.0.12/venv/lib/python3.11/site-packages/jinja2/bccache.pyÚgetz_MemcachedClient.getó€Ø ˆCóNÚvalueÚtimeoutcó—dSr r)rr rrs rÚsetz_MemcachedClient.setrrr ) Ú__name__Ú __module__Ú __qualname__ÚstrÚbytesrÚtÚOptionalÚintrrrrr r sr€€€€€ð ˜3ð  5ð ð ð ð ð ð ˜3ð  uð °q´zÀ#´ð ÐRVð ð ð ð ð ð rr ésj2éécó‚—eZdZdZdddededdfd„Zdd „Zd ejddfd „Z d ejddfd „Z d e ddfd„Z de fd„Z dS)ÚBucketauBuckets are used to store the bytecode for one template. It's created and initialized by the bytecode cache and passed to the loading functions. The buckets get an internal checksum from the cache assigned and use this to automatically reject outdated cache material. Individual bytecode cache subclasses don't have to care about cache invalidation. Ú environmentrr Úchecksumr NcóX—||_||_||_| ¦«dSr )r%r r&Úreset)rr%r r&s rÚ__init__zBucket.__init__5s)€Ø&ˆÔ؈ŒØ ˆŒ Ø � Š ‰ Œ ˆ ˆ ˆ rcó—d|_dS)z)Resets the bucket (unloads the bytecode).N)Úcode©rs rr(z Bucket.reset;s €à*.ˆŒ ˆ ˆ rÚfcó˜—| tt¦«¦«}|tkr| ¦«dSt j|¦«}|j|kr| ¦«dS tj|¦«|_dS#tttf$r| ¦«YdSwxYw)z/Loads bytecode from a file or file like object.N) ÚreadÚlenÚbc_magicr(ÚpickleÚloadr&Úmarshalr+ÚEOFErrorÚ ValueErrorÚ TypeError)rr-Úmagicr&s rÚ load_bytecodezBucket.load_bytecode?s²€ð—’•s�8‘}”}Ñ%Ô%ˆØ •HÒ Ð Ø �JŠJ‰LŒLˆLØ ˆFå”;˜q‘>”>ˆØ Œ=˜HÒ $Ð $Ø �JŠJ‰LŒLˆLØ ˆFð Ýœ  Q™œˆDŒIˆIˆIøÝ�*¥iÐ0ð ð ð Ø �JŠJ‰LŒLˆLØ ˆFˆFð øøøsÁ?BÂ+C ÃC cóЗ|j€td¦«‚| t¦«t j|j|d¦«tj|j|¦«dS)z;Dump the bytecode into the file or file like object passed.Nzcan't write empty bucketr!)r+r7Úwriter1r2Údumpr&r4)rr-s rÚwrite_bytecodezBucket.write_bytecodeRs[€à Œ9Ð ÝÐ6Ñ7Ô7Ð 7Ø �Š•ÑÔÐÝŒ �D”M 1 aÑ(Ô(Ð(ÝŒ �T”Y Ñ"Ô"Ð"Ð"Ð"rÚstringcóJ—| t|¦«¦«dS)zLoad bytecode from bytes.N)r9r)rr>s rÚbytecode_from_stringzBucket.bytecode_from_stringZs"€à ×Ò�7 6™?œ?Ñ+Ô+Ð+Ð+Ð+rcóp—t¦«}| |¦«| ¦«S)zReturn the bytecode as bytes.)rr=Úgetvalue)rÚouts rÚbytecode_to_stringzBucket.bytecode_to_string^s-€å‰iŒiˆØ ×Ò˜CÑ Ô Ð Ø�|Š|‰~Œ~Ðr©r N)rrrÚ__doc__rr)r(rÚBinaryIOr9r=rr@rDrrrr$r$,s瀀€€€ððð Mð¸ðÀsðÈtððððð /ð/ð/ð/ð˜qœzð¨dððððð&# ¤ ð#¨tð#ð#ð#ð#ð,¨5ð,°Tð,ð,ð,ð,ð Eððððððrr$c óЗeZdZdZdeddfd„Zdeddfd„Zdd„Z dded e j e j edefd „Z d edefd „Z d dded e j ed edef d„Zdeddfd„ZdS)Ú BytecodeCacheaÞTo implement your own bytecode cache you have to subclass this class and override :meth:`load_bytecode` and :meth:`dump_bytecode`. Both of these methods are passed a :class:`~jinja2.bccache.Bucket`. A very basic bytecode cache that saves the bytecode on the file system:: from os import path class MyCache(BytecodeCache): def __init__(self, directory): self.directory = directory def load_bytecode(self, bucket): filename = path.join(self.directory, bucket.key) if path.exists(filename): with open(filename, 'rb') as f: bucket.load_bytecode(f) def dump_bytecode(self, bucket): filename = path.join(self.directory, bucket.key) with open(filename, 'wb') as f: bucket.write_bytecode(f) A more advanced version of a filesystem based bytecode cache is part of Jinja. Úbucketr Ncó—t¦«‚)z¹Subclasses have to override this method to load bytecode into a bucket. If they are not able to find code in the cache for the bucket, it must not do anything. ©ÚNotImplementedError©rrJs rr9zBytecodeCache.load_bytecode‚ó€õ "Ñ#Ô#Ð#rcó—t¦«‚)zÀSubclasses have to override this method to write the bytecode from a bucket back to the cache. If it unable to do so it must not fail silently but raise an exception. rLrNs rÚ dump_bytecodezBytecodeCache.dump_bytecode‰rOrcó—dS)zºClears the cache. This method is not used by Jinja but should be implemented to allow applications to clear the bytecode cache used by a particular environment. Nrr,s rÚclearzBytecodeCache.clear�s€€€rÚnameÚfilenamecóÆ—t| d¦«¦«}|�*| d|›� ¦«¦«| ¦«S)z3Returns the unique hash key for this template name.úutf-8Nú|)rÚencodeÚupdateÚ hexdigest)rrTrUÚhashs rÚ get_cache_keyzBytecodeCache.get_cache_key–sW€õ�D—K’K Ñ(Ô(Ñ)Ô)ˆà Ð Ø �KŠK˜˜H˜˜×-Ò-Ñ/Ô/Ñ 0Ô 0Ð 0à�~Š~ÑÔÐrÚsourcecój—t| d¦«¦« ¦«S)z"Returns a checksum for the source.rW)rrYr[)rr^s rÚget_source_checksumz!BytecodeCache.get_source_checksum¡s(€å�F—M’M 'Ñ*Ô*Ñ+Ô+×5Ò5Ñ7Ô7Ð7rr%rcó¨—| ||¦«}| |¦«}t|||¦«}| |¦«|S)zwReturn a cache bucket for the given template. All arguments are mandatory but filename may be `None`. )r]r`r$r9)rr%rTrUr^r r&rJs rÚ get_bucketzBytecodeCache.get_bucket¥sV€ð× Ò   xÑ0Ô0ˆØ×+Ò+¨FÑ3Ô3ˆÝ˜  S¨(Ñ3Ô3ˆØ ×Ò˜6Ñ"Ô"Ð"؈ rcó0—| |¦«dS)zPut the bucket into the cache.N)rQrNs rÚ set_bucketzBytecodeCache.set_bucketµs€à ×Ò˜6Ñ"Ô"Ð"Ð"Ð"rrEr )rrrrFr$r9rQrSrrrÚUnionr]r`rbrdrrrrIrIesH€€€€€ððð8$ Fð$¨tð$ð$ð$ð$ð$ Fð$¨tð$ð$ð$ð$ð ð ð ð ð?Cð  ð  Øð  Ø#$¤:¨a¬g°c¬lÔ#;ð  à ð  ð  ð  ð  ð8¨#ð8°#ð8ð8ð8ð8ðà"ðððð”*˜S”/ð ð ð ð ð ðððð # ð#¨Dð#ð#ð#ð#ð#ð#rrIcó„—eZdZdZ ddejededdfd„Zdefd„Zd e defd „Z d e ddfd „Z d e ddfd „Z dd „Z dS)ÚFileSystemBytecodeCacheaïA bytecode cache that stores bytecode on the filesystem. It accepts two arguments: The directory where the cache items are stored and a pattern string that is used to build the filename. If no directory is specified a default cache directory is selected. On Windows the user's temp directory is used, on UNIX systems a directory is created for the user in the system temp directory. The pattern can be used to have multiple separate caches operate on the same directory. The default pattern is ``'__jinja2_%s.cache'``. ``%s`` is replaced with the cache key. >>> bcc = FileSystemBytecodeCache('/tmp/jinja_cache', '%s.cache') This bytecode cache supports clearing of the cache using the clear method. Nú__jinja2_%s.cacheÚ directoryÚpatternr cóN—|€| ¦«}||_||_dSr )Ú_get_default_cache_dirrirj)rrirjs rr)z FileSystemBytecodeCache.__init__Ìs-€ð Ð Ø×3Ò3Ñ5Ô5ˆIØ"ˆŒØˆŒ ˆ ˆ rcó"—dd„}tj¦«}tjdkr|St td¦«s |¦«dtj¦«›�}tj ||¦«} tj|tj ¦«n-#t$r }|j tj kr‚Yd}~nd}~wwxYw tj|tj ¦«tj|¦«}|jtj¦«ks@tj|j¦«r'tj|j¦«tj kr |¦«n-#t$r }|j tj kr‚Yd}~nd}~wwxYwtj|¦«}|jtj¦«ks@tj|j¦«r'tj|j¦«tj kr |¦«|S)Nr ú te.NoReturncó —td¦«‚)NzJCannot determine safe temp directory. You need to explicitly provide one.)Ú RuntimeErrorrrrÚ _unsafe_dirzCFileSystemBytecodeCache._get_default_cache_dir.._unsafe_dirÕs€Ýð2ñôð rÚntÚgetuidz_jinja2-cache-)r rn)ÚtempfileÚ gettempdirÚosrTÚhasattrrsÚpathÚjoinÚmkdirÚstatÚS_IRWXUÚOSErrorÚerrnoÚEEXISTÚchmodÚlstatÚst_uidÚS_ISDIRÚst_modeÚS_IMODE)rrqÚtmpdirÚdirnameÚ actual_dirÚeÚactual_dir_stats rrlz.FileSystemBytecodeCache._get_default_cache_dirÔsù€ð ð ð ð õ Ô$Ñ&Ô&ˆõ Œ7�dŠ?ˆ?؈MÝ•r˜8Ñ$Ô$ð Ø ˆK‰MŒMˆMà0¥2¤9¡;¤;Ð0Ð0ˆÝ”W—\’\ &¨'Ñ2Ô2ˆ ð Ý ŒH�Z¥¤Ñ .Ô .Ð .Ð .øÝð ð ð ØŒw�%œ,Ò&Ð&Øð'Ð&Ð&Ð&Ð&øøøøð øøøð Ý ŒH�Z¥¤Ñ .Ô .Ð .Ý œh zÑ2Ô2ˆOàÔ&­"¬)©+¬+Ò5Ð5Ý”| OÔ$;Ñ<Ô<ð6å”< Ô 7Ñ8Ô8½D¼LÒHÐHà� ‘ ” � øøÝð ð ð ØŒw�%œ,Ò&Ð&Øð'Ð&Ð&Ð&Ð&øøøøð øøøõœ( :Ñ.Ô.ˆà Ô "¥b¤i¡k¤kÒ 1Ð 1Ý”< Ô 7Ñ8Ô8ð 2åŒ|˜OÔ3Ñ4Ô4½¼ ÒDÐDà ˆK‰MŒMˆMàÐs1ÂB  C Â*CÃC ÃBE(Å( FÅ2F Æ FrJcóh—tj |j|j|jfz¦«Sr )rvrxryrirjr rNs rÚ_get_cache_filenamez+FileSystemBytecodeCache._get_cache_filenames%€ÝŒw�|Š|˜DœN¨D¬L¸F¼J¸=Ñ,HÑIÔIÐIrcóî—| |¦«}tj |¦«r@t |d¦«5}| |¦«ddd¦«dS#1swxYwYdSdS)NÚrb)rŒrvrxÚexistsÚopenr9)rrJrUr-s rr9z%FileSystemBytecodeCache.load_bytecodesº€Ø×+Ò+¨FÑ3Ô3ˆå Œ7�>Š>˜(Ñ #Ô #ð (Ý�h Ñ%Ô%ð (¨Ø×$Ò$ QÑ'Ô'Ð'ð (ð (ð (ñ (ô (ð (ð (ð (ð (ð (ð (ð (øøøð (ð (ð (ð (ð (ð (ð (ð (sÁA(Á(A,Á/A,có¨—t| |¦«d¦«5}| |¦«ddd¦«dS#1swxYwYdS)NÚwb)r�rŒr=)rrJr-s rrQz%FileSystemBytecodeCache.dump_bytecode s•€Ý �$×*Ò*¨6Ñ2Ô2°DÑ 9Ô 9ð %¸QØ × !Ò ! !Ñ $Ô $Ð $ð %ð %ð %ñ %ô %ð %ð %ð %ð %ð %ð %ð %øøøð %ð %ð %ð %ð %ð %s¤AÁA ÁA có—ddlm}tjtj|j¦«|jdz¦«}|D]A} |tj |j|¦«¦«Œ2#t$rYŒ>wxYwdS)Nr)Úremove)Ú*) rvr”ÚfnmatchÚfilterÚlistdirrirjrxryr})rr”ÚfilesrUs rrSzFileSystemBytecodeCache.clears�€ð ÐÐÐÐÐå”�rœz¨$¬.Ñ9Ô9¸4¼<È&Ñ;PÑQÔQˆØð ð ˆHð Ø�•r”w—|’| D¤N°HÑ=Ô=Ñ>Ô>Ð>Ð>øÝð ð ð Ø�ð øøøð ð sÁ.A/Á/ A<Á;A<)NrhrE)rrrrFrrrr)rlr$rŒr9rQrSrrrrgrgºsø€€€€€ððð$ATððØœ CœðØ:=ðà ððððð-¨ð-ð-ð-ð-ð^J¨&ðJ°SðJðJðJðJð( Fð(¨tð(ð(ð(ð(ð% Fð%¨tð%ð%ð%ð%ð ð ð ð ð ð rrgc óh—eZdZdZ ddddedejed efd „Z d e d dfd „Z d e d dfd„Z dS)ÚMemcachedBytecodeCachea'This class implements a bytecode cache that uses a memcache cache for storing the information. It does not enforce a specific memcache library (tummy's memcache or cmemcache) but will accept any class that provides the minimal interface required. Libraries compatible with this class: - `cachelib `_ - `python-memcached `_ (Unfortunately the django cache interface is not compatible because it does not support storing binary data, only text. You can however pass the underlying cache client to the bytecode cache which is available as `django.core.cache.cache._client`.) The minimal interface for the client passed to the constructor is this: .. class:: MinimalClientInterface .. method:: set(key, value[, timeout]) Stores the bytecode in the cache. `value` is a string and `timeout` the timeout of the key. If timeout is not provided a default timeout or no timeout should be assumed, if it's provided it's an integer with the number of seconds the cache item should exist. .. method:: get(key) Returns the value for the cache key. If the item does not exist in the cache the return value must be `None`. The other arguments to the constructor are the prefix for all keys that is added before the actual cache key and the timeout for the bytecode in the cache system. We recommend a high (or no) timeout. This bytecode cache does not support clearing of used items in the cache. The clear method is a no-operation function. .. versionadded:: 2.7 Added support for ignoring memcache errors through the `ignore_memcache_errors` parameter. újinja2/bytecode/NTÚclientr ÚprefixrÚignore_memcache_errorscó>—||_||_||_||_dSr )r�ržrrŸ)rr�ržrrŸs rr)zMemcachedBytecodeCache.__init__Ls'€ðˆŒ ؈Œ ؈Œ Ø&<ˆÔ#Ð#Ð#rrJr có²— |j |j|jz¦«}| |¦«dS#t $r |js‚YdSwxYwr )r�rržr r@Ú ExceptionrŸ)rrJr+s rr9z$MemcachedBytecodeCache.load_bytecodeXsy€ð .Ø”;—?’? 4¤;°´Ñ#;Ñ<Ô<ˆDð × 'Ò '¨Ñ -Ô -Ð -Ð -Ð -øõ ð ð ð ØÔ.ð Øð ð ð ð øøøs‚'AÁAÁAcó —|j|jz}| ¦«} |j�#|j |||j¦«dS|j ||¦«dS#t $r |js‚YdSwxYwr )ržr rDrr�rr¢rŸ)rrJr rs rrQz$MemcachedBytecodeCache.dump_bytecodeas¢€ØŒk˜FœJÑ&ˆØ×)Ò)Ñ+Ô+ˆð ØŒ|Ð'Ø” —’  U¨D¬LÑ9Ô9Ð9Ð9Ð9à” —’  UÑ+Ô+Ð+Ð+Ð+øÝð ð ð ØÔ.ð Øð ð ð ð øøøs¥(A,ÁA,Á,BÂB)rœNT) rrrrFrrrrÚboolr)r$r9rQrrrr›r›s³€€€€€ð*ð*ð^)Ø#'Ø'+ð =ð =à"ð =ðð =ð”˜C”ð =ð !%ð =ð =ð =ð =ð. Fð.¨tð.ð.ð.ð.ð  Fð ¨tð ð ð ð ð ð rr›) rFr~r–r4rvr2r{ÚsysrtÚtypingrÚhashlibrÚiorÚtypesrÚ TYPE_CHECKINGÚtyping_extensionsÚter%rÚProtocolr Ú bc_versionÚdumpsÚ version_infor1r$rIrgr›rrrúr±sðððð € € € Ø€€€Ø€€€Ø € € € Ø € € € Ø € € € Ø € € € Ø€€€ØÐÐÐØÐÐÐÐÐØÐÐÐÐÐØÐÐÐÐÐà„?ð Ø"Ð"Ð"Ð"Ø(Ð(Ð(Ð(Ð(Ð(ððððð˜2œ;ñôðð€ ð  Ø€f„l�:˜qÑ!Ô!ñ"à€f„l�CÔ$ QÔ'¨2Ñ-°Ô1AÀ!Ô1DÑDÀaÑHÔHñIð ð6ð6ð6ð6ð6ñ6ô6ð6ðrR#ðR#ðR#ðR#ðR#ñR#ôR#ðR#ðjbðbðbðbðb˜mñbôbðbðJMðMðMðMðM˜]ñMôMðMðMðMr