File: //opt/cloudlinux/venv/lib/python3.11/site-packages/toml/__pycache__/encoder.cpython-311.pyc
�
�f�^}[l� � � d dl Z d dlZd dlZd dlmZ d dlmZ ej dk reZ dd�Z
dd�Zd� 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� TypeError�dumps)�o�fr �ds �]/builddir/build/BUILD/cloudlinux-venv-1.0.8/venv/lib/python3.11/site-packages/toml/encoder.py�dumpr sD � �
�7� L��J�K�K�K�
�a��!�!�!�A��G�G�A�J�J�J��H� c �
� d}|�t | j � � }|� | d� � \ }}||z
}t | � � g}|r�d� |� � � 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 <