uawdijnntqw1x1x1
IP : 18.225.54.118
Hostname : ns1.eurodns.top
Kernel : Linux ns1.eurodns.top 4.18.0-553.5.1.lve.1.el7h.x86_64 #1 SMP Fri Jun 14 14:24:52 UTC 2024 x86_64
Disable Function : mail,sendmail,exec,passthru,shell_exec,system,popen,curl_multi_exec,show_source,eval,open_base
OS : Linux
PATH:
/
home
/
..
/
lib
/
python2.7
/
site-packages
/
.
/
jinja2
/
.
/
optimizer.pyc
/
/
� ,��Qc@sIdZddlmZddlmZd�Zdefd��YZdS(s[ jinja2.optimizer ~~~~~~~~~~~~~~~~ The jinja optimizer is currently trying to constant fold a few expressions and modify the AST in place so that it should be easier to evaluate it. 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 scoping. The solution would be a second syntax tree that has the scoping rules stored. :copyright: (c) 2010 by the Jinja Team. :license: BSD. i����(tnodes(tNodeTransformercCst|�}|j|�S(s^The context hint can be used to perform an static optimization based on the context given.(t Optimizertvisit(tnodetenvironmentt optimizer((s4/usr/lib/python2.7/site-packages/jinja2/optimizer.pytoptimizesRcBsteZd�Zd�Zd�ZeZZZZZ Z ZZZ ZZZZZZZZZZ[RS(cCs ||_dS(N(R(tselfR((s4/usr/lib/python2.7/site-packages/jinja2/optimizer.pyt__init__ scCs�|jtj�dk r%|j|�Sy|j|j�j�}Wntjk ra|j|�SX|rt|j }n |j }g}x$|D]}|j|j|��q�W|S(sEliminate dead code.N( tfindRtBlocktNonet generic_visitRttesttas_constt Impossibletbodytelse_textendt visit_list(RRtvalRtresult((s4/usr/lib/python2.7/site-packages/jinja2/optimizer.pytvisit_If#s cCsW|j|�}y,tjj|j�d|jd|j�SWntjk rR|SXdS(sDo constant folding.tlinenoRN(R RtConsttfrom_untrustedRRRR(RR((s4/usr/lib/python2.7/site-packages/jinja2/optimizer.pytfold6s (t__name__t __module__R RRt visit_Addt visit_Subt visit_Mult visit_Divtvisit_FloorDivt visit_Powt visit_Modt visit_Andtvisit_Ort visit_Post visit_Negt visit_Nott visit_Comparet visit_Getitemt visit_Getattrt visit_Calltvisit_Filtert visit_Testtvisit_CondExpr(((s4/usr/lib/python2.7/site-packages/jinja2/optimizer.pyRs NN(t__doc__tjinja2Rtjinja2.visitorRRR(((s4/usr/lib/python2.7/site-packages/jinja2/optimizer.pyt<module>s
/home/../lib/python2.7/site-packages/./jinja2/./optimizer.pyc