File manager - Edit - /opt/imh-python/lib/python2.7/site-packages/stevedore/example2/fields.pyc
Back
� ��Wc @ s9 d d l Z d d l m Z d e j f d � � YZ d S( i����N( t baset FieldListc B s e Z d Z d � Z RS( s� 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 c sl xe t | j � � D]Q \ } } d j d | d | � } t j | d d d d d | j �} | d Vq Wd S( s� Format the data and return unicode text. :param data: A dictionary with string keys and simple types as values. :type data: dict(str:?) s : {name} : {value}t namet valuet initial_indentt t subsequent_indents t widths N( t sortedt itemst formatt textwrapt fillt max_width( t selft dataR R t full_textt wrapped_text( ( s<