ó
ïRec @ s d d l Z d d l Z d d l Z d d l m Z d d l m Z e j d k r\ e Z n d d „ Z d d „ Z d „ Z
d „ Z d „ Z d
e f d „ ƒ YZ d e f d
„ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d S( iÿÿÿÿN( t Decimal( t InlineTableDicti c C s; | j s t d ƒ ‚ n t | d | ƒ} | j | ƒ | S( s Writes out dict as toml to a file
Args:
o: Object to dump into toml
f: File descriptor where the toml should be stored
encoder: The ``TomlEncoder`` to use for constructing the output string
Returns:
String containing the toml corresponding to dictionary
Raises:
TypeError: When anything other than file descriptor is passed
s0 You can only dump an object to a file descriptort encoder( t writet TypeErrort dumps( t ot fR t d( ( s‡ /builddir/build/BUILDROOT/alt-python27-pip-20.2.4-5.el8.x86_64/opt/alt/python27/lib/python2.7/site-packages/pip/_vendor/toml/encoder.pyt dump s
c C s€ d } | d k r$ t | j ƒ } n | j | d ƒ \ } } | | 7} t | ƒ g } x$| r{g | D] } t | ƒ ^ qe } x) | D]! } | | k r„ t d ƒ ‚ q„ q„ W| | 7} | j ƒ } x° | D]¨ } | j | | | ƒ \ } }
| sü | rG|
rG| r| d d k r| d 7} n | d | d 7} | rG| | 7} qGn x$ |
D] } |
| | | d |