Server IP : 23.254.227.96 / Your IP : 216.73.216.46 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/jinja2/__pycache__/ |
Upload File : |
3 aG�\� � @ s4 d Z ddlmZ G dd� de�ZG dd� de�ZdS )z� jinja2.visitor ~~~~~~~~~~~~~~ This module implements a visitor for the nodes. :copyright: (c) 2017 by the Jinja Team. :license: BSD. � )�Nodec @ s( e Zd ZdZdd� Zdd� Zdd� ZdS ) �NodeVisitora Walks 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. c C s d|j j }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_visitor s zNodeVisitor.get_visitorc O s4 | j |�}|dk r"||f|�|�S | j|f|�|�S )z Visit a node.N)r � generic_visit)r r �args�kwargs�fr r r �visit"