Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.21
Disable Function : NONE
Directory :  /lib/python3/dist-packages/zope/interface/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python3/dist-packages/zope/interface/__pycache__/document.cpython-310.pyc
o

$
x`��@s>dZddlZddgZd
dd�Zddd�Zdd	�Zddd�ZdS)z� Pretty-Print an Interface object as structured text (Yum)

This module provides a function, asStructuredText, for rendering an
interface as structured text.
�N�asReStructuredText�asStructuredTextFcCs�|rdd�}ndd�}||���g}|j}d}|��r&|tt|���|��dd�|jD�}|rW|td||��|d7}|D]}d||���}	|tt|	�||��q>|d8}t|���}
|td	||��|d7}|
D]!\}}t|d
�s�d||���|��pdf}	|tt|	�||��qk|d8}|td
||��|d7}|
D])\}}t|d
�r�d|��|�	�f}
d||
�|��p�df}	|tt|	�||��q�d�
|�dS)z� Output structured text format.  Note, this will whack any existing
    'structured' format of the text.

    If `rst=True`, then the output will quote all code as inline literals in
    accordance with 'reStructuredText' markup principles.
    cSs
d|fS)Nz``%s``���srr�9/usr/lib/python3/dist-packages/zope/interface/document.py�<lambda>#s
z"asStructuredText.<locals>.<lambda>cSs|S)Nrrrrrr%s�cSsg|]
}|tjjur|�qSr)�zope�	interface�	Interface)�.0�baserrr�
<listcomp>.s
�z$asStructuredText.<locals>.<listcomp>zThis interface extends:zo %szAttributes:�getSignatureStringz%s -- %szno documentationzMethods:z%s%sz

)�getName�append�getDoc�_justify_and_indent�_trim_doc_string�	__bases__�sorted�namesAndDescriptions�hasattrr�join)�I�munge�rst�inline_literal�r�outp�level�bases�b�itemr�name�desc�_callrrrrsP
�

��

��cCst||dd�S)zi Output reStructuredText format.  Note, this will whack any existing
    'structured' format of the text.T)rr)r)rrrrrrQscCsZ|�dd��d�}|�d�g}|r(tdd�|D��}|D]}|�||d��qd�|�S)zJ Trims a doc string to make it format
    correctly with structured text. �
�
rcSs g|]}t|�t|����qSr)�len�lstrip)r
�linerrrr^s�z$_trim_doc_string.<locals>.<listcomp>N)�replace�split�pop�minrr)�text�lines�nlines�
min_indentr,rrrrWs�
r�HcCs�d|}|r1g}|}|��}|D]}d�||g�}t|�|kr&|�|�|}q|�|�d�|�S||���dd��dd|�S)z9 indent and justify text, rejustify (munge) if specified � r)r()r.rr*r�stripr-)r1r!r�width�indentr2r,�wordrrrrfs 
�

�r)rF)r)rr5)�__doc__�zope.interfacer
�__all__rrrrrrrr�<module>s
�

7

Spamworldpro Mini