| Server IP : 217.160.0.135 / Your IP : 216.73.217.37 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/python3/dist-packages/stevedore/example2/__pycache__/ |
Upload File : |
�
��Oc � �@ � d dl Z d dlmZ G d� dej � � ZdS )� N)�basec � � e Zd ZdZd� ZdS )� FieldListz�Format values as a reStructuredText field list.
For example::
: name1 : value
: name2 : value
: name3 : a long value
will be wrapped with
a hanging indent
c # �� K � t |� � � � � D ]@\ }}d� ||�� � }t j |dd| j �� � }|dz V � �AdS )z�Format the data and return unicode text.
:param data: A dictionary with string keys and simple types as
values.
:type data: dict(str:?)
z: {name} : {value})�name�value� z )�initial_indent�subsequent_indent�width�
N)�sorted�items�format�textwrap�fill� max_width)�self�datar r � full_text�wrapped_texts �;/usr/lib/python3/dist-packages/stevedore/example2/fields.pyr zFieldList.format! s� � � � � "�$�*�*�,�,�/�/� &� &�K�D�%�,�3�3��� 4� � �I� $�=��!�"(��n� � � �L� ��%�%�%�%�%� &� &� N)�__name__�
__module__�__qualname__�__doc__r � r r r r s- � � � � � � � �&� &� &� &� &r r )r �stevedore.exampler �
FormatterBaser r r r �<module>r! sY �� ���� "� "� "� "� "� "�&� &� &� &� &��"� &� &� &� &� &r