AnonSec Shell
Server IP : 209.38.156.173  /  Your IP : 216.73.216.122   [ Reverse IP ]
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux lakekumayuhotel 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64
User : root ( 0)
PHP Version : 8.1.2-1ubuntu2.22
Disable Function : NONE
Domains : 2 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/lib/python3/dist-packages/jinja2/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /usr/lib/python3/dist-packages/jinja2/__pycache__/optimizer.cpython-310.pyc
o

�:�`r�@sddZddlZddlmZddlmZejrddlm	Z	dej
dd	d
ej
fdd�ZGd
d�de�ZdS)a�The optimizer tries to constant fold expressions and modify the AST
in place so that it should be faster to evaluate.

Because the AST does not contain all the scoping information and the
compiler has to find that out, we cannot do all the optimizations we
want. For example, loop unrolling doesn't work because unrolled loops
would have a different scope. The solution would be a second syntax tree
that stored the scoping rules.
�N�)�nodes)�NodeTransformer)�Environment�node�environmentr�returncCst|�}t�tj|�|��S)z^The context hint can be used to perform an static optimization
    based on the context given.)�	Optimizer�t�castr�Node�visit)rr�	optimizer�r�2/usr/lib/python3/dist-packages/jinja2/optimizer.py�optimizesrcs@eZdZddd�Zdejdejd	ejdejf�fd
d�Z�Z	S)
r	r�t.Optional[Environment]rNcCs
||_dS)N)r)�selfrrrr�__init__s
zOptimizer.__init__r�args�kwargscslt�j|g|�Ri|��}t|tj�r4ztjj|�|r|dnd�|j|j	d�WStj
y3Y|Sw|S)Nr)�linenor)�super�
generic_visit�
isinstancer�Expr�Const�from_untrusted�as_constrr�
Impossible)rrrr��	__class__rrrs��zOptimizer.generic_visit)rrrN)
�__name__�
__module__�__qualname__rrrr
�Anyr�
__classcell__rrr rr	s
����r	)
�__doc__�typingr
�r�visitorr�
TYPE_CHECKINGrrrrr	rrrr�<module>s	

Anon7 - 2022
AnonSec Team