ó
    Ï›‘h°  ã                   ó<   • S r SSKrSS/rS	S jrS
S jrS rSS jrg)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                 óä  • U(       a  S nOS nU" U R                  5       5      /nUR                  nSnU R                  5       (       a)  U" [        [	        U R                  5       5      U5      5        U R
                   Vs/ s H$  nU[        R                  R                  Ld  M"  UPM&     nnU(       aY  U" [        SXa5      5        US-  nU H7  n	SU" U	R                  5       5      -  n
U" [        [	        U
5      Xa5      5        M9     US-  n[        U R                  5       5      nU" [        SXa5      5        US-  nU Hp  u  pÍ[        US5      (       a  M  SR                  U" UR                  5       5      UR                  5       =(       d    S	5      n
U" [        [	        U
5      Xa5      5        Mr     US-  nU" [        S
Xa5      5        US-  nU H„  u  pÍ[        US5      (       d  M  UR                  5        UR                  5        3nSR                  U" U5      UR                  5       =(       d    S	5      n
U" [        [	        U
5      Xa5      5        M†     SR                  U5      S-   $ s  snf )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                 ó   • SU  S3$ )Nz``© ©Úss    Ú[C:\Users\psant\Downloads\Noiseback\school\venv\Lib\site-packages\zope/interface/document.pyÚinline_literalÚ(asStructuredText.<locals>.inline_literal%   s   € Ø˜�s˜"�:Ðó    c                 ó   • U $ )Nr   r   s    r
   r   r   (   s   € ØˆHr   é   zThis interface extends:zo %szAttributes:ÚgetSignatureStringz{} -- {}zno documentationzMethods:z

)ÚgetNameÚappendÚgetDocÚ_justify_and_indentÚ_trim_doc_stringÚ	__bases__ÚzopeÚ	interfaceÚ	InterfaceÚsortedÚnamesAndDescriptionsÚhasattrÚformatr   Újoin)ÚifaceÚmungeÚrstr   ÚrÚoutpÚlevelÚbaseÚbasesÚbÚitemr   ÚnameÚdescÚ_calls                  r
   r   r      s5  € ö ó	ò	ñ 
˜Ÿ™›Ó	(Ð)€AØ�8‰8€DØ€Eà‡|�|‡~�~ÙÔ Ô!1°%·,±,³.Ó!AÀ5ÓIÔJð ŸšóÚ(�ØœDŸN™N×4Ñ4Ð4÷ Ù(ð 
ð ö ÙÔ Ð!:¸EÓIÔJØ�‰
ˆÛˆAØ™N¨1¯9©9«;Ó7Ñ7ˆDÙÔ$Ô%5°dÓ%;¸UÓJÖKñ ð 	�‰
ˆä! %×"<Ñ"<Ó">Ó?ÐáÔ	˜]¨EÓ	9Ô:Ø	ˆQ�J€EÛ*‰
ˆÜ�tÐ1×2Ó2Ø×$Ñ$Ù˜tŸ|™|›~Ó.Ø—‘“×3Ð!3óˆDñ Ô$Ô%5°dÓ%;¸UÓJÖKñ +ð 
ˆQ�J€EáÔ	˜Z¨Ó	6Ô7Ø	ˆQ�J€EÛ*‰
ˆÜ�4Ð-×.Ó.Ø—|‘|“~Ð& t×'>Ñ'>Ó'@Ð&AÐBˆEØ×$Ñ$Ù˜uÓ%Ø—‘“×3Ð!3óˆDñ Ô$Ô%5°dÓ%;¸UÓJÖKñ +ð �;‰;�q‹>˜FÑ"Ð"ùòIs   Â !I-Â%I-c                 ó   • [        XSS9$ )zdOutput reStructuredText format.

Note, this will whack any existing 'structured' format of the text.T)r    r!   )r   )r   r    s     r
   r   r   Y   s   € ô ˜E°DÑ9Ð9r   c           
      óX  • U R                  SS5      R                  S5      nUR                  S5      /nU(       a[  [        U Vs/ s H(  n[	        U5      [	        UR                  5       5      -
  PM*     sn5      nU H  nUR                  X4S 5        M     SR                  U5      $ s  snf )zETrims a doc string to make it format
correctly with structured text. ú
Ú
r   N)ÚreplaceÚsplitÚpopÚminÚlenÚlstripr   r   )ÚtextÚlinesÚnlinesÚlineÚ
min_indents        r
   r   r   `   s›   € ð �L‰L˜ Ó&×,Ñ,¨TÓ2€EØ�i‰i˜‹lˆ^€FÞÜÙ&+ó-Ú&+˜dô ˜d›)¤c¨$¯+©+«-Ó&8Ô8Ù&+ñ-ó .ˆ
ãˆDØ�M‰M˜$˜{Ð+Ö,ñ ð �9‰9�VÓÐùò-s   Á/B'c                 óp  • SU-  nU(       au  / nUnU R                  5       n U  H9  nSR                  Xg/5      n[        U5      U:”  d  M&  UR                  U5        UnM;     UR                  U5        SR                  U5      $ UU R	                  5       R                  SS5      R                  SSU-   5      -   $ )z8indent and justify text, rejustify (munge) if specified Ú r/   r.   )r1   r   r4   r   Ústripr0   )r6   r$   r    ÚwidthÚindentr7   r9   Úwords           r
   r   r   o   s±   € ð �5‰[€FæØˆØˆØ�z‰z‹|ˆãˆDØ—8‘8˜T˜LÓ)ˆDÜ�4‹y˜5Õ Ø—‘˜TÔ"Ø’ñ	 ð �L‰L˜Ôà�y‰y˜ÓÐð Ø�J‰J‹L× Ñ  ¨Ó.×7Ñ7¸¸dÀV¹mÓLñMð 	Mr   )r   F)r   )r   éH   )Ú__doc__Úzope.interfacer   Ú__all__r   r   r   r   r   r   r
   Ú<module>rE      s4   ðñó
 ð Øð€ô:#ôz:òõMr   