CasperSecurity

Current Path : /lib/python3/dist-packages/zope/interface/__pycache__/
Upload File :
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
Hacker Blog, Shell İndir, Sql İnjection, XSS Attacks, LFI Attacks, Social Hacking, Exploit Bot, Proxy Tools, Web Shell, PHP Shell, Alfa Shell İndir, Hacking Training Set, DDoS Script, Denial Of Service, Botnet, RFI Attacks, Encryption
Telegram @BIBIL_0DAY