⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
jinja2
/
__pycache__
/
View File Name :
optimizer.cpython-312.pyc
#er d Z ddlZddlmZ ddlmZ ej rddlm Z dej dd d ej fdZ G d d e Zy)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)Environmentnodeenvironmentr returnc ~ t | }t j t j |j | S )z^The context hint can be used to perform an static optimization based on the context given.) Optimizertcastr Nodevisit)r r optimizers 2/usr/lib/python3/dist-packages/jinja2/optimizer.pyoptimizer s, +&I66%**iood344 c e Zd ZddZdej dej dej dej f fdZ xZ S )r r c || _ y )N)r )selfr s r __init__zOptimizer.__init__ s &r r argskwargsc 0 t | |g|i |}t |t j rM t j j |j |r|d nd |j | j S |S # t j $ r Y |S w xY w)Nr )linenor )super generic_visit isinstancer ExprConstfrom_untrustedas_constr r Impossible)r r r r __class__s r r zOptimizer.generic_visit s w$T;D;F; dEJJ' {{11MMT$q't<;; $ 0 0 2 ## s AA> >BB)r zt.Optional[Environment]r N) __name__ __module____qualname__r r r r Anyr __classcell__)r$ s @r r r sB 'JJ'(uu89 r r ) __doc__typingr r visitorr TYPE_CHECKINGr r r r r r r
r0 sM $??(55:: 5M 5ejj 5 r