HEX
Server: LiteSpeed
System: Linux server.nevid-deploma.com 4.18.0-553.111.1.lve.el8.x86_64 #1 SMP Fri Mar 13 13:42:17 UTC 2026 x86_64
User: smilepac (1037)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: //opt/cppython/lib/python3.8/site-packages/yaml/__pycache__/__init__.cpython-38.pyc
U

ID�g0�@s�ddlTddlTddlTddlTddlTddlTdZzddlTdZWne	k
r\dZYnXddl
Z
d@dd�Zefd	d
�Z
efdd�Zefd
d�Zefdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd�Zdd �Zdedddddfd!d"�Zdeddddddddddfd#d$�Zdefd%d&�Zdedddddddddddddfd'd(�Zdefd)d*�ZdAd+d,�ZdBd-d.�Z ddefd/d0�Z!ddefd1d2�Z"dCd3d4�Z#dDd5d6�Z$efd7d8�Z%efd9d:�Z&Gd;d<�d<e'�Z(Gd=d>�d>e(d?�Z)dS)E�)�*z6.0.2TF�NcCs|dkriSdS)N�)�settingsrr�:/opt/cppython/lib/python3.8/site-packages/yaml/__init__.py�warningssrccs0||�}z|��r|��Vq
W5|��XdS)z9
    Scan a YAML stream and produce scanning tokens.
    N)�disposeZcheck_token�	get_token��stream�Loader�loaderrrr�scans
rccs0||�}z|��r|��Vq
W5|��XdS)z9
    Parse a YAML stream and produce parsing events.
    N)rZcheck_eventZ	get_eventr
rrr�parse(s
rcCs$||�}z|��W�S|��XdS)zj
    Parse the first YAML document in a stream
    and produce the corresponding representation tree.
    N)rZget_single_noder
rrr�compose3srccs0||�}z|��r|��Vq
W5|��XdS)zb
    Parse all YAML documents in a stream
    and produce corresponding representation trees.
    N)rZ
check_nodeZget_noder
rrr�compose_all>s
rcCs$||�}z|��W�S|��XdS)zd
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    N)rZget_single_datar
rrr�loadJsrccs0||�}z|��r|��Vq
W5|��XdS)z\
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    N)rZ
check_data�get_datar
rrr�load_allUs
rcCs
t|t�S)z�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve all tags except those known to be
    unsafe on untrusted input.
    )r�
FullLoader�rrrr�	full_loadasrcCs
t|t�S)z�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve all tags except those known to be
    unsafe on untrusted input.
    )rrrrrr�
full_load_allksrcCs
t|t�S)z�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve only basic YAML tags. This is known
    to be safe for untrusted input.
    )r�
SafeLoaderrrrr�	safe_loadusrcCs
t|t�S)z�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve only basic YAML tags. This is known
    to be safe for untrusted input.
    )rrrrrr�
safe_load_allsrcCs
t|t�S)z�
    Parse the first YAML document in a stream
    and produce the corresponding Python object.

    Resolve all tags, even those known to be
    unsafe on untrusted input.
    )r�UnsafeLoaderrrrr�unsafe_load�srcCs
t|t�S)z�
    Parse all YAML documents in a stream
    and produce corresponding Python objects.

    Resolve all tags, even those known to be
    unsafe on untrusted input.
    )rrrrrr�unsafe_load_all�srcCs`d}|dkrt��}|j}|||||||d�}	z|D]}
|	�|
�q4W5|	��X|r\|�SdS)zl
    Emit YAML parsing events into a stream.
    If stream is None, return the produced string instead.
    N)�	canonical�indent�width�
allow_unicode�
line_break)�io�StringIO�getvaluer�emit)�eventsr�Dumperrr r!r"r#r&�dumper�eventrrrr'�s
�
r'c

Cs�d}
|dkr,|dkrt��}nt��}|j}
|||||||||||	|
d�}z(|��|D]}|�|�qX|��W5|��X|
r�|
�SdS)z�
    Serialize a sequence of representation trees into a YAML stream.
    If stream is None, return the produced string instead.
    N)
rr r!r"r#�encoding�version�tags�explicit_start�explicit_end)r$r%�BytesIOr&r�open�	serialize�close)�nodesrr)rr r!r"r#r,r/r0r-r.r&r*�noderrr�
serialize_all�s.	

�
r7cKst|g|fd|i|��S)zx
    Serialize a representation tree into a YAML stream.
    If stream is None, return the produced string instead.
    r))r7)r6rr)�kwdsrrrr3�sr3cCs�d}|dkr,|
dkrt��}nt��}|j}|||||||||	|
|
||||d�}z(|��|D]}|�|�q^|��W5|��X|r�|�SdS)z
    Serialize a sequence of Python objects into a YAML stream.
    If stream is None, return the produced string instead.
    N)
�
default_style�default_flow_stylerr r!r"r#r,r-r.r/r0�	sort_keys)r$r%r1r&rr2Z	representr4)�	documentsrr)r9r:rr r!r"r#r,r/r0r-r.r;r&r*�datarrr�dump_all�s8

�
r>cKst|g|fd|i|��S)zr
    Serialize a Python object into a YAML stream.
    If stream is None, return the produced string instead.
    r))r>)r=rr)r8rrr�dump�sr?cKst||fdti|��S)z�
    Serialize a sequence of Python objects into a YAML stream.
    Produce only basic YAML tags.
    If stream is None, return the produced string instead.
    r)�r>Z
SafeDumper)r<rr8rrr�
safe_dump_all�srAcKst|g|fdti|��S)z�
    Serialize a Python object into a YAML stream.
    Produce only basic YAML tags.
    If stream is None, return the produced string instead.
    r)r@)r=rr8rrr�	safe_dumpsrBcCsZ|dkr:tj�|||�tj�|||�tj�|||�n|�|||�|�|||�dS)z�
    Add an implicit scalar detector.
    If an implicit scalar value matches the given regexp,
    the corresponding tag is assigned to the scalar.
    first is a sequence of possible initial characters or None.
    N)r
r�add_implicit_resolverrr)�tag�regexp�firstrr)rrrrCsrCcCsZ|dkr:tj�|||�tj�|||�tj�|||�n|�|||�|�|||�dS)z�
    Add a path based resolver for the given tag.
    A path is a list of keys that forms a path
    to a node in the representation tree.
    Keys can be string values, integers, or None.
    N)r
r�add_path_resolverrr)rD�path�kindrr)rrrrGsrGcCsD|dkr4tj�||�tj�||�tj�||�n|�||�dS)z�
    Add a constructor for the given tag.
    Constructor is a function that accepts a Loader instance
    and a node object and produces the corresponding Python object.
    N)r
r�add_constructorrr)rD�constructorrrrrrJ.s
rJcCsD|dkr4tj�||�tj�||�tj�||�n|�||�dS)a
    Add a multi-constructor for the given tag prefix.
    Multi-constructor is called for a node if its tag starts with tag_prefix.
    Multi-constructor accepts a Loader instance, a tag suffix,
    and a node object and produces the corresponding Python object.
    N)r
r�add_multi_constructorrr)Z
tag_prefixZmulti_constructorrrrrrL;s
rLcCs|�||�dS)z�
    Add a representer for the given type.
    Representer is a function accepting a Dumper instance
    and an instance of the given data type
    and producing the corresponding representation node.
    N)�add_representer)�	data_typeZrepresenterr)rrrrMIsrMcCs|�||�dS)z�
    Add a representer for the given type.
    Multi-representer is a function accepting a Dumper instance
    and an instance of the given data type or subtype
    and producing the corresponding representation node.
    N)�add_multi_representer)rNZmulti_representerr)rrrrORsrOcs eZdZdZ�fdd�Z�ZS)�YAMLObjectMetaclassz'
    The metaclass for YAMLObject.
    csxtt|��|||�d|krt|ddk	rtt|jt�rR|jD]}|�|j|j�q:n|j�|j|j�|j	�
||j�dS)N�yaml_tag)�superrP�__init__�
isinstance�yaml_loader�listrJrQ�	from_yaml�yaml_dumperrM�to_yaml)�cls�name�basesr8r
��	__class__rrrS_s
zYAMLObjectMetaclass.__init__)�__name__�
__module__�__qualname__�__doc__rS�
__classcell__rrr]rrP[srPc@sBeZdZdZdZeeegZe	Z
dZdZe
dd��Ze
dd��ZdS)�
YAMLObjectza
    An object that can dump itself to a YAML stream
    and load itself from a YAML stream.
    rNcCs|�||�S)zC
        Convert a representation node to a Python object.
        )Zconstruct_yaml_object)rZr
r6rrrrWxszYAMLObject.from_yamlcCs|j|j|||jd�S)zC
        Convert a Python object to a representation node.
        )Z
flow_style)Zrepresent_yaml_objectrQ�yaml_flow_style)rZr*r=rrrrYs�zYAMLObject.to_yaml)r_r`rarb�	__slots__rrrrUr)rXrQre�classmethodrWrYrrrrrdjs

rd)�	metaclass)N)N)N)N)N)*�error�tokensr(r5r
r*�__version__ZcyamlZ__with_libyaml__�ImportErrorr$rrrrrrrrrrrrrrr)r'r7r3r>r?rArBrCrGrJrLrMrO�typerPrdrrrr�<module>s�







�
�
�
!

�