HEX
Server: Apache
System: Linux srv1.prosuiteplus.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: prosuiteplus (1001)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: //lib/python3/dist-packages/awscli/customizations/eks/__pycache__/ordered_yaml.cpython-38.pyc
U

<�^H�@s|ddlZddlmZGdd�dej�ZGdd�dej�Zdd�Ze�ej	j
je�d	d
�Ze�
ee�dd�Zdd
d�ZdS)�N)�OrderedDictc@seZdZdZdS)�SafeOrderedLoaderz- Safely load a yaml file into an OrderedDict.N��__name__�
__module__�__qualname__�__doc__�r	r	�H/usr/lib/python3/dist-packages/awscli/customizations/eks/ordered_yaml.pyrsrc@seZdZdZdS)�SafeOrderedDumperz$ Safely dump an OrderedDict as yaml.Nrr	r	r	r
rsrcCs|�|�t|�|��S�N)Zflatten_mappingrZconstruct_pairs)�loaderZnoder	r	r
�_ordered_constructors
rcCs|�tjjj|���Sr)Zrepresent_mapping�yaml�resolver�BaseResolver�DEFAULT_MAPPING_TAG�items)Zdumper�datar	r	r
�_ordered_representer$s�rcCst�|t�S)z/ Load an OrderedDict object from a yaml stream.)r�loadr)�streamr	r	r
�ordered_yaml_load-srcCstj||tdd�S)z�
    Dump an OrderedDict object to yaml.

    :param to_dump: The OrderedDict to dump
    :type to_dump: OrderedDict

    :param stream: The file to dump to
    If not given or if None, only return the value
    :type stream: file
    F)Zdefault_flow_style)r�dumpr)Zto_dumprr	r	r
�ordered_yaml_dump2s�r)N)rZbotocore.compatrZ
SafeLoaderrZ
SafeDumperrrZadd_constructorrrrrZadd_representerrrr	r	r	r
�<module>s�