404

[ Avaa Bypassed ]




Upload:

Command:

elspacio@18.224.61.70: ~ $
3

aG�\��@s4dZddlmZGdd�de�ZGdd�de�ZdS)z�
    jinja2.visitor
    ~~~~~~~~~~~~~~

    This module implements a visitor for the nodes.

    :copyright: (c) 2017 by the Jinja Team.
    :license: BSD.
�)�Nodec@s(eZdZdZdd�Zdd�Zdd�ZdS)	�NodeVisitoraWalks the abstract syntax tree and call visitor functions for every
    node found.  The visitor functions may return values which will be
    forwarded by the `visit` method.

    Per default the visitor functions for the nodes are ``'visit_'`` +
    class name of the node.  So a `TryFinally` node visit function would
    be `visit_TryFinally`.  This behavior can be changed by overriding
    the `get_visitor` function.  If no visitor function exists for a node
    (return value `None`) the `generic_visit` visitor is used instead.
    cCsd|jj}t||d�S)z�Return the visitor function for this node or `None` if no visitor
        exists for this node.  In that case the generic visit function is
        used instead.
        Zvisit_N)�	__class__�__name__�getattr)�self�node�method�r
�/usr/lib/python3.6/visitor.py�get_visitorszNodeVisitor.get_visitorcOs4|j|�}|dk	r"||f|�|�S|j|f|�|�S)z
Visit a node.N)r�
generic_visit)rr�args�kwargs�fr
r
r�visit"s
zNodeVisitor.visitcOs(x"|j�D]}|j|f|�|�q
WdS)z9Called if no explicit visitor function exists for a node.N)Ziter_child_nodesr)rrrrr
r
rr
)szNodeVisitor.generic_visitN)r�
__module__�__qualname__�__doc__rrr
r
r
r
rrs
rc@s eZdZdZdd�Zdd�ZdS)�NodeTransformera�Walks the abstract syntax tree and allows modifications of nodes.

    The `NodeTransformer` will walk the AST and use the return value of the
    visitor functions to replace or remove the old node.  If the return
    value of the visitor function is `None` the node will be removed
    from the previous location otherwise it's replaced with the return
    value.  The return value may be the original node in which case no
    replacement takes place.
    c	Os�x�|j�D]�\}}t|t�r�g}xT|D]L}t|t�rh|j|f|�|�}|dkrRq&nt|t�sh|j|�q&|j|�q&W||dd�<q
t|t�r
|j|f|�|�}|dkr�t||�q
t|||�q
W|S)N)	Ziter_fields�
isinstance�listrr�extend�append�delattr�setattr)	rrrrZfieldZ	old_valueZ
new_values�valueZnew_noder
r
rr
:s&





zNodeTransformer.generic_visitcOs&|j|f|�|�}t|t�s"|g}|S)z{As transformers may return lists in some places this method
        can be used to enforce a list as return value.
        )rrr)rrrr�rvr
r
r�
visit_listPs
zNodeTransformer.visit_listN)rrrrr
rr
r
r
rr/s	rN)rZjinja2.nodesr�objectrrr
r
r
r�<module>
s!

Filemanager

Name Type Size Permission Actions
__init__.cpython-36.opt-1.pyc File 2.42 KB 0644
__init__.cpython-36.pyc File 2.42 KB 0644
_compat.cpython-36.opt-1.pyc File 3.21 KB 0644
_compat.cpython-36.pyc File 3.21 KB 0644
_identifier.cpython-36.opt-1.pyc File 1.75 KB 0644
_identifier.cpython-36.pyc File 1.75 KB 0644
asyncfilters.cpython-36.opt-1.pyc File 4.63 KB 0644
asyncfilters.cpython-36.pyc File 4.63 KB 0644
asyncsupport.cpython-36.opt-1.pyc File 7.9 KB 0644
asyncsupport.cpython-36.pyc File 7.9 KB 0644
bccache.cpython-36.opt-1.pyc File 12.37 KB 0644
bccache.cpython-36.pyc File 12.37 KB 0644
compiler.cpython-36.opt-1.pyc File 45.69 KB 0644
compiler.cpython-36.pyc File 45.75 KB 0644
constants.cpython-36.opt-1.pyc File 1.61 KB 0644
constants.cpython-36.pyc File 1.61 KB 0644
debug.cpython-36.opt-1.pyc File 9.01 KB 0644
debug.cpython-36.pyc File 9.07 KB 0644
defaults.cpython-36.opt-1.pyc File 1.37 KB 0644
defaults.cpython-36.pyc File 1.37 KB 0644
environment.cpython-36.opt-1.pyc File 41.85 KB 0644
environment.cpython-36.pyc File 42.2 KB 0644
exceptions.cpython-36.opt-1.pyc File 4.85 KB 0644
exceptions.cpython-36.pyc File 4.85 KB 0644
ext.cpython-36.opt-1.pyc File 19.53 KB 0644
ext.cpython-36.pyc File 19.58 KB 0644
filters.cpython-36.opt-1.pyc File 33.84 KB 0644
filters.cpython-36.pyc File 33.97 KB 0644
idtracking.cpython-36.opt-1.pyc File 9.62 KB 0644
idtracking.cpython-36.pyc File 9.66 KB 0644
lexer.cpython-36.opt-1.pyc File 17.96 KB 0644
lexer.cpython-36.pyc File 18.08 KB 0644
loaders.cpython-36.opt-1.pyc File 16.14 KB 0644
loaders.cpython-36.pyc File 16.14 KB 0644
meta.cpython-36.opt-1.pyc File 3.53 KB 0644
meta.cpython-36.pyc File 3.53 KB 0644
nativetypes.cpython-36.opt-1.pyc File 4.96 KB 0644
nativetypes.cpython-36.pyc File 4.96 KB 0644
nodes.cpython-36.opt-1.pyc File 35.39 KB 0644
nodes.cpython-36.pyc File 35.75 KB 0644
optimizer.cpython-36.opt-1.pyc File 1.94 KB 0644
optimizer.cpython-36.pyc File 1.94 KB 0644
parser.cpython-36.opt-1.pyc File 24.7 KB 0644
parser.cpython-36.pyc File 24.7 KB 0644
runtime.cpython-36.opt-1.pyc File 23.95 KB 0644
runtime.cpython-36.pyc File 23.98 KB 0644
sandbox.cpython-36.opt-1.pyc File 13.82 KB 0644
sandbox.cpython-36.pyc File 13.82 KB 0644
tests.cpython-36.opt-1.pyc File 4.26 KB 0644
tests.cpython-36.pyc File 4.26 KB 0644
utils.cpython-36.opt-1.pyc File 20.15 KB 0644
utils.cpython-36.pyc File 20.15 KB 0644
visitor.cpython-36.opt-1.pyc File 3.22 KB 0644
visitor.cpython-36.pyc File 3.22 KB 0644