Hacked By AnonymousFox
�
�܋fE � �` � d dgZ ddlmZ ddlT ddlT G d� de� � Z G d� d � � ZdS )�
Serializer�SerializerError� )� YAMLError)�*c � � e Zd ZdS )r N)�__name__�
__module__�__qualname__� � �F/opt/cloudlinux/venv/lib64/python3.11/site-packages/yaml/serializer.pyr r s � � � � � ��Dr c �B � e Zd ZdZ d
d�Zd� Zd� Zd� Zd� Zd� Z d � Z
dS )r zid%03dNc � � || _ || _ || _ || _ || _ i | _ i | _ d| _ d | _ d S )N� ) �use_encoding�use_explicit_start�use_explicit_end�use_version�use_tags�serialized_nodes�anchors�last_anchor_id�closed)�self�encoding�explicit_start�explicit_end�version�tagss r
�__init__zSerializer.__init__ sK � �$���"0��� ,���"�����
� "�������������r c � � | j �1| � t | j �� � � � d| _ d S | j rt d� � �t d� � �)N)r F�serializer is closedzserializer is already opened)r �emit�StreamStartEventr r �r s r
�openzSerializer.open s_ � ��;���I�I�&��0A�B�B�B�C�C�C��D�K�K�K�
�[� B�!�"8�9�9�9�!�"@�A�A�Ar c � � | j �t d� � �| j s*| � t � � � � d| _ d S d S )N�serializer is not openedT)r r r# �StreamEndEventr% s r
�closezSerializer.close$ sP � ��;��!�"<�=�=�=��� ��I�I�n�&�&�'�'�'��D�K�K�K� � r c � � | j �t d� � �| j rt d� � �| � t | j | j | j �� � � � | � |� � | � |d d � � | � t | j
�� � � � i | _ i | _ d| _
d S )Nr( r"