f^}[l d dl Z d dlZd dlZd dlmZ d dlmZ ej dk reZ ddZ ddZd Zd Z d Z G d de Z G d d e Z G d de Z G d de Z G d de Z G d de ZdS ) N)Decimal)InlineTableDict c ~ |j st d t | | }| | |S )a 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 z0You can only dump an object to a file descriptor)encoder)write TypeErrordumps)ofr ds ^/builddir/build/BUILD/cloudlinux-venv-1.0.10/venv/lib/python3.11/site-packages/toml/encoder.pydumpr sD 7 LJKKK a!!!AGGAJJJH c d}|t | j }| | d \ }}||z }t | g}|rd | D }|D ]}||v rt d ||z }| }|D ]d} | || | \ }} |s|s)| s'|r|dd dk r|dz }|d| z d z z }|r||z }| D ]}| | || d z |z <