403Webshell
Server IP : 198.38.94.13  /  Your IP : 216.73.217.33
Web Server : Apache
System : Linux d4744.dxb1.stableserver.net 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
User : revivere ( 1140)
PHP Version : 8.2.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/__pycache__/doc.cpython-310.pyc
o

;j��@s2dZddlZddlZe�e�Zdd�Zdd�ZdS)z,
Functions for analyzing/parsing docstrings
�NcCs�|��D]9\}}t�d|�|sq|}dD]\}}z	t�|||�}Wqty4tjd||dd�Yqw||kr=|||<q|S)zA
    Strip/replace reStructuredText directives in docstrings
    zStripping docstring for %s))z *.. code-block:: \S+\n{1,2}�)z	.. note::zNote:)z.. warning::zWarning:)z.. versionadded::zNew in version)z.. versionchanged::zChanged in versionzJException encountered while matching regex %r to docstring for function %sT)�exc_info)�items�log�debug�re�sub�	Exception)Zdocs�func�	docstringZ
docstring_new�regex�repl�r�B/opt/saltstack/salt/lib/python3.10/site-packages/salt/utils/doc.py�	strip_rsts(
���rcs�d|i}d}t�||tj�}|r2g}d}|�d�����D]}|�t�||��d��q||d<|Sd�|��}t�fdd	�|D��}|sKg|d<|S|d��d
����	d�}||d<|S)a
    Parse a docstring into its parts.

    Currently only parses dependencies, can be extended to parse whatever is
    needed.

    Parses into a dictionary:
        {
            'full': full docstring,
            'deps': list of dependencies (empty list if none)
        }
    �fullz@([ \t]*):depends:[ \t]+- (\w+)[^\n]*\n(\1[ \t]+- (\w+)[^\n]*\n)*z- (\w+)r��depszRequired python modules: c3s"�|]}|�����r|VqdS)N)�strip�
startswith)�.0�x��txtrr�	<genexpr>Fs� z"parse_docstring.<locals>.<genexpr>rz, )
r�search�M�groupr�
splitlines�append�list�replace�split)r�retr�matchr�line�dataZdep_listrrr�parse_docstring*s&r')�__doc__�loggingr�	getLogger�__name__rrr'rrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit