Server : Apache System : Linux iad1-shared-b8-43 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64 User : dh_edsupp ( 6597262) PHP Version : 8.2.26 Disable Function : NONE Directory : /lib/python3/dist-packages/sphinx/pycode/__pycache__/ |
Upload File : |
o �$�aR � @ s� d Z ddlZddlZddlZddlZddlmZ ddlmZ ddlm Z m Z mZmZm Z mZmZ ddlmZmZ ddlmZmZmZmZmZ ddlmZ dd lmZmZ e�d �Ze�d�Ze�d�Zd e de fdd�Z!dej"deej# fdd�Z$d&dej"dej%dee fdd�Z&de de fdd�Z'G dd� d�Z(G dd� d�Z)G dd� de)�Z*G d d!� d!ej+�Z,G d"d#� d#e)�Z-G d$d%� d%�Z.dS )'z� sphinx.pycode.parser ~~~~~~~~~~~~~~~~~~~~ Utilities parsing and analyzing Python code. :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. � N)�OrderedDict)� Signature)�DEDENT�INDENT�NAME�NEWLINE�NUMBER�OP�STRING)�COMMENT�NL)�Any�Dict�List�Optional�Tuple)�ast)�parse�unparsez^\s*#: ?(.*) ? ?$z^\s*$z^\s*(#.*)?$�code�returnc C s | � dd�S )N�� )�replace)r � r �6/usr/lib/python3/dist-packages/sphinx/pycode/parser.py�filter_whitespace s r �nodec C s t | tj�r | jS | jgS )z3Get list of targets from Assign and AnnAssign node.)� isinstancer �Assign�targets�target)r r r r �get_assign_targets s r"