HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/yaml/__pycache__/__init__.cpython-310.pyc
o

�N�g0�@s�ddlTddlTddlTddlTddlTddlTdZzddlTdZWne	y-dZYnwddl
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*�Zd@d+d,�Zd@d-d.�Z ddefd/d0�Z!ddefd1d2�Z"d@d3d4�Z#d@d5d6�Z$efd7d8�Z%efd9d:�Z&Gd;d<�d<e'�Z(Gd=d>�d>e(d?�Z)dS)A�)�*z6.0.1TF�NcCs|duriSdS�N�)Zsettingsrr�A/opt/saltstack/salt/lib/python3.10/site-packages/yaml/__init__.py�warningss�rcc�L�||�}z|��r|��V|��s
W|��dSW|��dS|��w)z9
    Scan a YAML stream and produce scanning tokens.
    N)Zcheck_tokenZ	get_token�dispose��stream�Loader�loaderrrr�scan��

��rccr)z9
    Parse a YAML stream and produce parsing events.
    N)Zcheck_eventZ	get_eventr	r
rrr�parse(rrcC�&||�}z	|��W|��S|��w)zj
    Parse the first YAML document in a stream
    and produce the corresponding representation tree.
    )Zget_single_noder	r
rrr�compose3�rccr)zb
    Parse all YAML documents in a stream
    and produce corresponding representation trees.
    N)Z
check_nodeZget_noder	r
rrr�compose_all>��

��rcCr)zd
    Parse the first YAML document in a stream
    and produce the corresponding Python object.
    )Zget_single_datar	r
rrr�loadJrrccr)z\
    Parse all YAML documents in a stream
    and produce corresponding Python objects.
    N)Z
check_data�get_datar	r
rrr�load_allUrrcC�
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_loada�
rcCr)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_allkrrcCr)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_loadurr cCr)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_allrr!cCr)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�rr#cCr)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.
    )rr"rrrr�unsafe_load_all�rr$cCshd}|dur
t��}|j}|||||||d�}	z|D]}
|	�|
�qW|	��n|	��w|r2|�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�Dumperr%r&r'r(r)r,�dumper�eventrrrr-�s
���r-c

Cs�d}
|dur|durt��}nt��}|j}
|||||||||||	|
d�}z|��|D]}|�|�q,|��W|��n|��w|
rH|
�SdS)z�
    Serialize a sequence of representation trees into a YAML stream.
    If stream is None, return the produced string instead.
    N)
r%r&r'r(r)�encoding�version�tags�explicit_start�explicit_end)r*r+�BytesIOr,�open�	serialize�closer	)�nodesrr/r%r&r'r(r)r2r5r6r3r4r,r0�noderrr�
serialize_all�s(	

�
�r=cK�t|g|fd|i|��S)zx
    Serialize a representation tree into a YAML stream.
    If stream is None, return the produced string instead.
    r/)r=)r<rr/�kwdsrrrr9��r9cCs�d}|dur|
durt��}nt��}|j}|||||||||	|
|
||||d�}z|��|D]}|�|�q/|��W|��n|��w|rK|�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_styler%r&r'r(r)r2r3r4r5r6�	sort_keys)r*r+r7r,r8Z	representr:r	)�	documentsrr/rArBr%r&r'r(r)r2r5r6r3r4rCr,r0�datarrr�dump_all�s,

�
�rFcKr>)zr
    Serialize a Python object into a YAML stream.
    If stream is None, return the produced string instead.
    r/)rF)rErr/r?rrr�dump�r@rGcKst||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/�rFZ
SafeDumper)rDrr?rrr�
safe_dump_all�srIcKst|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/rH)rErr?rrr�	safe_dumpsrJcC�Z|durtj�|||�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")�tagZregexp�firstrr/rrrrLsrLcCrK)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")rM�path�kindrr/rrrrOsrOcC�F|durtj�||�tj�||�tj�||�dS|�||�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")rM�constructorrrrrrS.s
rScCrR)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rrrrU;s
rUcC�|�||�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/rrrrWI�rWcCrV)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)rXZmulti_representerr/rrrrZRrYrZcs eZdZdZ�fdd�Z�ZS)�YAMLObjectMetaclassz'
    The metaclass for YAMLObject.
    cs�tt|��|||�d|vr<|ddur>t|jt�r)|jD]
}|�|j|j�qn	|j�|j|j�|j	�
||j�dSdSdS)N�yaml_tag)�superr[�__init__�
isinstance�yaml_loader�listrSr\�	from_yaml�yaml_dumperrW�to_yaml)�cls�name�basesr?r
��	__class__rrr^_s
��zYAMLObjectMetaclass.__init__)�__name__�
__module__�__qualname__�__doc__r^�
__classcell__rrrhrr[[sr[c@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)rer
r<rrrrbxszYAMLObject.from_yamlcCs|j|j|||jd�S)zC
        Convert a Python object to a representation node.
        )Z
flow_style)Zrepresent_yaml_objectr\�yaml_flow_style)rer0rErrrrds�zYAMLObject.to_yaml)rjrkrlrm�	__slots__rrr"r`r/rcr\rp�classmethodrbrdrrrrrojs

ro)�	metaclassr)*�error�tokensr.r;r
r0�__version__ZcyamlZ__with_libyaml__�ImportErrorr*rrrrrrrrrrr r!r#r$r/r-r=r9rFrGrIrJrLrOrSrUrWrZ�typer[rorrrr�<module>st�







�
�
�!


�