관리-도구
편집 파일: ast.cpython-311.pyc
� �܋f� � � � d Z ddlZddlmZ ddlmZ G d� d� � Z G d� d� � Z G d � d e� � Z G d� d� � Z G d � de� � Z dS )zjutilities for analyzing expressions and blocks of Python code, as well as generating Python from AST nodes� N)� exceptions)�pyparserc � � e Zd ZdZd� ZdS )� PythonCodez<represents information about a string containing Python codec �( � || _ t � � | _ t � � | _ t |t � � r&t j |� � � dfi |��}n|}t j | fi |��}|� |� � d S )N�exec)�code�set�declared_identifiers�undeclared_identifiers� isinstance�strr �parse�lstrip�FindIdentifiers�visit��selfr �exception_kwargs�expr�fs �?/opt/cloudlinux/venv/lib64/python3.11/site-packages/mako/ast.py�__init__zPythonCode.__init__ s� � ��� � %(�E�E��!� '*�e�e��#� �d�C� � � ��>�$�+�+�-�-��L�L�;K�L�L�D�D��D��$�T�>�>�-=�>�>�� ���� � � � � � N��__name__� __module__�__qualname__�__doc__r � r r r r s) � � � � � �F�F�� � � � r r c � � e Zd ZdZd� ZdS )�ArgumentListzBparses a fragment of code as a comma-separated list of expressionsc �| � g | _ g | _ t � � | _ t � � | _ t |t � � rCt j d|� � rt j d|� � s|dz }t j |dfi |��}n|}t j | t fi |��}|� |� � d S )Nz\Sz,\s*$�,r )�codeargs�argsr r r r r �re�matchr r � FindTupler r r s r r zArgumentList.__init__6 s� � ��� ��� �$'�E�E��!�&)�e�e��#��d�C� � � ��x��t�$�$� �R�X�h��-E�-E� � �����>�$��C�C�2B�C�C�D�D��D���t�Z�D�D�3C�D�D�� ���� � � � � r Nr r r r r"