HEX
Server: LiteSpeed
System: Linux kapuas.iixcp.rumahweb.net 5.14.0-427.42.1.el9_4.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Nov 1 14:58:02 EDT 2024 x86_64
User: mirz4654 (1666)
PHP: 8.1.33
Disabled: system,exec,escapeshellarg,escapeshellcmd,passthru,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,popen,pclose,dl,pfsockopen,leak,apache_child_terminate,posix_kill,posix_mkfifo,posix_setsid,posix_setuid,posix_setpgid,ini_alter,show_source,define_syslog_variables,symlink,syslog,openlog,openlog,closelog,ocinumcols,listen,chgrp,apache_note,apache_setenv,debugger_on,debugger_off,ftp_exec,dll,ftp,myshellexec,socket_bind,mail,posix_getwpuid
Upload Files
File: //lib/python3.9/site-packages/ansible/parsing/utils/__pycache__/yaml.cpython-39.pyc
a

�)gY�@s�ddlmZmZmZeZddlZddlmZddl	m
Z
ddlmZddl
mZddlmZddlmZdd	lmZd
Zdd�Zdd
d�Zddd�ZdS)�)�absolute_import�division�print_functionN)�	YAMLError)�AnsibleParserError)�YAML_SYNTAX_ERROR)�	to_native)�
AnsibleLoader)�AnsibleBaseYAMLObject)�AnsibleJSONDecoder)�	from_yamlcCshd}t|d�r0t�}||jjd|jjdf|_ttt|dd��}dt|�|f}t	||||d��dS)z�
    Optionally constructs an object (AnsibleBaseYAMLObject) to encapsulate the
    file name/position where a YAML exception occurred, and raises an AnsibleParserError
    to display the syntax exception information.
    N�problem_mark�Zproblem�zcWe were unable to read either as JSON nor YAML, these are the errors we got from each:
JSON: %s

%s)�obj�show_content�orig_exc)
�hasattrr
r
�line�columnZansible_posrr�getattrr)�json_exc�yaml_exc�	file_namerZerr_objZn_yaml_syntax_errorZ	n_err_msg�r�>/usr/lib/python3.9/site-packages/ansible/parsing/utils/yaml.py�
_handle_errors	

�rcCs�t|||�}zL|��Wz|��WSty4YS0Sz|��Wq|tyVYq|0n"z|��WntyxYn00dS)zD Implements yaml.safe_load(), except using our custom loader class. N)r	Zget_single_dataZdispose�AttributeError)�streamr�
vault_secrets�loaderrrr�
_safe_load.s ��r!�<string>TFc
Cs�d}zt�|�tj|td�}Wn~ty�}zf|rDtt|�|d��zt|||d�}Wn2ty�}zt	||||�WYd}~n
d}~00WYd}~n
d}~00|S)zl
    Creates a python datastructure from the given data, which can be either
    a JSON or YAML string.
    N)�cls)r)rr)
rZset_secrets�json�loads�	Exceptionrrr!rr)�datarrrZ	json_onlyZnew_datarrrrrr;s
:r)NN)r"TNF)Z
__future__rrr�typeZ
__metaclass__r$ZyamlrZansible.errorsrZansible.errors.yaml_stringsrZansible.module_utils._textrZansible.parsing.yaml.loaderr	Zansible.parsing.yaml.objectsr
Zansible.parsing.ajsonr�__all__rr!rrrrr�<module>s