MOON
Server: Apache
System: Linux vps.erhabenn.com.br 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64
User: machen (1008)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: //usr/lib/mysqlsh/lib/python3.9/site-packages/yaml/__pycache__/__init__.cpython-39.pyc
a

вPf0�@s�ddlTddlTddlTddlTddlTddlTdZzddlTdZWne	yZdZYn0ddl
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.1TF�NcCs|duriSdS)N�)Zsettingsrr�=/usr/lib/mysqlsh/lib/python3.9/site-packages/yaml/__init__.py�warningssrccs8||�}z |��r|��Vq
W|��n
|��0dS)z9
    Scan a YAML stream and produce scanning tokens.
    N)Zcheck_tokenZ	get_token�dispose��stream�Loader�loaderrrr�scans
rccs8||�}z |��r|��Vq
W|��n
|��0dS)z9
    Parse a YAML stream and produce parsing events.
    N)Zcheck_eventZ	get_eventrrrrr�parse(s
r
cCs*||�}z|��W|��S|��0dS)zj
    Parse the first YAML document in a stream
    and produce the corresponding representation tree.
    N)Zget_single_noderrrrr�compose3s�rccs8||�}z |��r|��Vq
W|��n
|��0dS)zb
    Parse all YAML documents in a stream
    and produce corresponding representation trees.
    N)Z
check_nodeZget_noderrrrr�compose_all>s
rcCs*||�}z|��W|��S|��0dS)zd
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    N)Zget_single_datarrrrr�loadJs�rccs8||�}z |��r|��Vq
W|��n
|��0dS)z\
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    N)Z
check_data�get_datarrrrr�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�r	rrr�	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�srcCshd}|durt��}|j}|||||||d�}	z |D]}
|	�|
�q4W|	��n
|	��0|rd|�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�getvalue�emitr)�eventsr	�Dumperrrrr r!r$�dumper�eventrrrr%�s
�r%c

Cs�d}
|dur,|durt��}nt��}|j}
|||||||||||	|
d�}z0|��|D]}|�|�qX|��W|��n
|��0|
r�|
�SdS)z�
    Serialize a sequence of representation trees into a YAML stream.
    If stream is None, return the produced string instead.
    N)
rrrr r!�encoding�version�tags�explicit_start�explicit_end)r"r#�BytesIOr$�open�	serialize�closer)�nodesr	r'rrrr r!r*r-r.r+r,r$r(�noderrr�
serialize_all�s&	

�
r5cKst|g|fd|i|��S)zx
    Serialize a representation tree into a YAML stream.
    If stream is None, return the produced string instead.
    r')r5)r4r	r'�kwdsrrrr1�sr1cCs�d}|dur,|
durt��}nt��}|j}|||||||||	|
|
||||d�}z0|��|D]}|�|�q^|��W|��n
|��0|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_stylerrrr r!r*r+r,r-r.�	sort_keys)r"r#r/r$r0Z	representr2r)�	documentsr	r'r7r8rrrr r!r*r-r.r+r,r9r$r(�datarrr�dump_all�s*

�
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;r	r'r6rrr�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:r	r6rrr�
safe_dump_all�sr?cKst|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;r	r6rrr�	safe_dumpsr@cCsZ|dur: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)rr
�add_implicit_resolverrr)�tagZregexp�firstr
r'rrrrAsrAcCsZ|dur: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)rr
�add_path_resolverrr)rB�path�kindr
r'rrrrDsrDcCsD|dur4tj�||�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)rr
�add_constructorrr)rB�constructorr
rrrrG.s
rGcCsD|dur4tj�||�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)rr
�add_multi_constructorrr)Z
tag_prefixZmulti_constructorr
rrrrI;s
rIcCs|�||�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_type�representerr'rrrrJIsrJcCs|�||�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)rKZmulti_representerr'rrrrMRsrMcs eZdZdZ�fdd�Z�ZS)�YAMLObjectMetaclassz'
    The metaclass for YAMLObject.
    csxtt|��|||�d|vrt|ddurtt|jt�rR|jD]}|�|j|j�q:n|j�|j|j�|j	�
||j�dS)N�yaml_tag)�superrN�__init__�
isinstance�yaml_loader�listrGrO�	from_yaml�yaml_dumperrJ�to_yaml)�cls�name�basesr6r��	__class__rrrQ_s
zYAMLObjectMetaclass.__init__)�__name__�
__module__�__qualname__�__doc__rQ�
__classcell__rrr[rrN[srNc@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)rXrr4rrrrUxszYAMLObject.from_yamlcCs|j|j|||jd�S)zC
        Convert a Python object to a representation node.
        )Z
flow_style)Zrepresent_yaml_objectrO�yaml_flow_style)rXr(r;rrrrWs�zYAMLObject.to_yaml)r]r^r_r`�	__slots__r
rrrSr'rVrOrc�classmethodrUrWrrrrrbjs

rb)�	metaclass)N)N)N)N)N)*�error�tokensr&r3rr(�__version__ZcyamlZ__with_libyaml__�ImportErrorr"rr
rr
rrrrrrrrrrr'r%r5r1r<r=r?r@rArDrGrIrJrM�typerNrbrrrr�<module>sp







�
�
�
!

�