HEX
Server: Apache
System: Linux p102.lithium.hosting 4.18.0-553.141.1.el8_10.x86_64 #1 SMP Fri Jul 10 17:48:02 UTC 2026 x86_64
User: bvzmoamr (9955)
PHP: 8.1.34
Disabled: syslog
Upload Files
File: //usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/document.pyo
�
1�3\c@@s]dZddlmZddlmZded�Zdd�Zd�Zddd	�Z	d
S(s� Pretty-Print an Interface object as structured text (Yum)

This module provides a function, asStructuredText, for rendering an
interface as structured text.
i(tabsolute_importi(t	InterfacecC@sh|rd�}n	d�}||j��g}|j}d}|j�rm|tt|j��|��ng|jD]}|tk	rw|^qw}|r|td||��|d7}x@|D]8}	d||	j��}
|tt|
�||��q�W|d8}nt|j��}|td||��|d7}xj|D]b\}}
t	|
d�sDd||
j��|
j�p�d	f}
|tt|
�||��qDqDW|d8}|td
||��|d7}x�|D]x\}}
t	|
d�r�d|
j�|
j
�f}d||�|
j�p-d	f}
|tt|
�||��q�q�Wdj|�dS(
s� 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.
    cS@sd|fS(Ns``%s``((ts((sR/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/document.pyt<lambda>!tcS@s|S(N((R((sR/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/document.pyR#RisThis interface extends:so %ssAttributes:tgetSignatureStrings%s -- %ssno documentationsMethods:s%s%ss

(tgetNametappendtgetDoct_justify_and_indentt_trim_doc_stringt	__bases__RtsortedtnamesAndDescriptionsthasattrRtjoin(tItmungetrsttinline_literaltrtoutptleveltbasetbasestbtitemR
tnametdesct_call((sR/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/document.pytasStructuredTextsH		"


 

#

#cC@st|d|dt�S(si Output reStructuredText format.  Note, this will whack any existing
    'structured' format of the text.RR(RtTrue(RR((sR/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/document.pytasReStructuredTextOscC@s�|jdd�jd�}|jd�g}|r�tg|D]"}t|�t|j��^q=�}x"|D]}|j||�qoWndj|�S(sJ Trims a doc string to make it format
    correctly with structured text. s
s
i(treplacetsplittpoptmintlentlstripRR(ttexttlinestnlinestlinet
min_indent((sR/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/document.pyR
Us/
iHcC@s�d|}|r�g}|}|j�}xX|D]C}dj||g�}t|�|kr/|j|�|}q/q/W|j|�dj|�S||j�jdd�jdd|�SdS(s9 indent and justify text, rejustify (munge) if specified t s
s
N(R"RR%RtstripR!(R'RRtwidthtindentR(R*tword((sR/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/document.pyR	ds





N(
t__doc__t
__future__RRRtFalseRR R
R	(((sR/usr/lib64/python2.7/site-packages/mercurial/thirdparty/zope/interface/document.pyt<module>s7