⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.24
Server IP:
50.6.168.112
Server:
Linux server-617809.webnetzimbabwe.com 5.14.0-570.25.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 9 04:57:09 EDT 2025 x86_64
Server Software:
Apache
PHP Version:
8.4.10
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.9
/
site-packages
/
jinja2
/
__pycache__
/
View File Name :
bccache.cpython-39.opt-1.pyc
a `k/ @ s d Z ddlZddlZddlZddlZddlZddlZddlmZ ddlm Z ddlm Z ddlmZ ddlm Z dd lmZ dd lmZ ddlmZ ddlmZ d Zdeed eejd d> ejd B d ZG dd deZG dd deZG 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)listdir)path )BytesIO)marshal_dump)marshal_load)pickle) text_type)open_if_exists s j2 c @ s@ e Zd ZdZdd Zdd Zdd Zdd Zd d Zdd Z 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. c C s || _ || _|| _| d S N)environmentkeychecksumreset)selfr r r r 2/usr/lib/python3.9/site-packages/jinja2/bccache.py__init__. s zBucket.__init__c C s d| _ dS )z)Resets the bucket (unloads the bytecode).N)coder r r r r 4 s zBucket.resetc C sx | tt}|tkr"| dS t|}| j|krB| dS zt|| _W n" t t tfyr | Y dS 0 dS )z/Loads bytecode from a file or file like object.N)readlenbc_magicr r loadr r r EOFError ValueError TypeError)r fmagicr r r r load_bytecode8 s zBucket.load_bytecodec C s<