%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/zope/interface/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/zope/interface/__pycache__/document.cpython-312.pyc

�

��e���6�dZddlZddgZd	d�Zd
d�Zd�Zdd�Zy)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�asStructuredTextc��|rd�}nd�}||j��g}|j}d}|j�r)|tt	|j��|��|j
D�cgc] }|tjjur|��"}}|rY|td||��|dz
}|D]7}	d||	j��z}
|tt	|
�||���9|dz}t|j��}|td||��|dz
}|D]f\}}
t|
d�r�dj||
j��|
j�xsd	�}
|tt	|
�||���h|dz}|td
||��|dz
}|D]�\}}
t|
d�s�dj|
j�|
j��}dj||�|
j�xsd	�}
|tt	|
�||����dj|�dzScc}w)
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.
    c�$�dj|�S)Nz``{}``)�format��ss �9/usr/lib/python3/dist-packages/zope/interface/document.py�<lambda>z"asStructuredText.<locals>.<lambda>#s��8�?�?�1�#5��c��|S)N�rs r
rz"asStructuredText.<locals>.<lambda>%s��1�r�zThis interface extends:zo %szAttributes:�getSignatureStringz{} -- {}zno documentationzMethods:z{}{}z

)�getName�append�getDoc�_justify_and_indent�_trim_doc_string�	__bases__�zope�	interface�	Interface�sorted�namesAndDescriptions�hasattrrr�join)�I�munge�rst�inline_literal�r�outp�level�base�bases�b�itemr�name�desc�_calls               r
rrsI���5��$��	��	�	��	$�%�A��8�8�D�
�E��x�x�z��
 �!1�!�(�(�*�!=�u�
E�F����
���D�N�N�4�4�4��
�E�
�
��
 �!:�E�5�
I�J�
��
���	L�A��N�1�9�9�;�7�7�D��$�%5�d�%;�U�E�J�K�	L�	��
��!�!�"8�"8�":�;���	�]�E�5�	9�:�	�Q�J�E�*�L�
��d��t�1�2��$�$�^�D�L�L�N�%C�!%����!D�2D�F�D��$�%5�d�%;�U�E�J�K�	L�

�Q�J�E��	�Z���	6�7�	�Q�J�E�*�L�
��d��4�-�.��M�M�$�,�,�.�$�2I�2I�2K�L�E��$�$�^�E�%:�!%����!D�2D�F�D��$�%5�d�%;�U�E�J�K�L��;�;�q�>�F�"�"��A
s�6%Ic��t||d��S)zi Output reStructuredText format.  Note, this will whack any existing
    'structured' format of the text.T)rr )r)rrs  r
rrQs���A�U��5�5rc
�F�|jdd�jd�}|jd�g}|rWt|D�cgc]'}t	|�t	|j��z
��)c}�}|D]}|j
||d��dj|�Scc}w)zJ Trims a doc string to make it format
    correctly with structured text. �
�
rN)�replace�split�pop�min�len�lstriprr)�text�lines�nlines�line�
min_indents     r
rrWs���
�L�L���&�,�,�T�2�E��i�i��l�^�F���&+�-�"��d�)�c�$�+�+�-�&8�8�-�.�
��	-�D��M�M�$�z�{�+�,�	-��9�9�V����-s�,Bc�`�d|z}|rrg}|}|j�}|D]7}dj||g�}t|�|kDs�%|j|�|}�9|j|�dj|�S||j	�jdd�jdd|z�zS)z9 indent and justify text, rejustify (munge) if specified � r/r.)r1rr4r�stripr0)r6r$r�width�indentr7r9�words        r
rrfs����5�[�F�������z�z�|���	�D��8�8�T�4�L�)�D��4�y�5� ����T�"���		�
�L�L����y�y������J�J�L� � ���.�7�7��d�V�m�L�M�	Mr)rF)r)r�H)�__doc__�zope.interfacer�__all__rrrrrrr
�<module>rEs4���
�����
4#�n6��Mr

Zerion Mini Shell 1.0