403Webshell
Server IP : 80.87.202.40  /  Your IP : 216.73.216.169
Web Server : Apache
System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64
User : bitrix ( 600)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF |  cURL : ON |  WGET : ON |  Perl : ON |  Python : OFF |  Sudo : ON |  Pkexec : ON
Directory :  /lib/python3.11/site-packages/ansible/template/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/template/__pycache__/native_helpers.cpython-311.pyc
�

���c�����ddlmZmZmZeZddlZddlmZm	Z	ddl
mZddlm
Z
ddlmZddlmZddlmZdd	lmZd
ddd�ZGd
�dej��Zd�Zd�Zd�ZdS)�)�absolute_import�division�print_functionN)�islice�chain)�
GeneratorType��to_text)�string_types)�AnsibleVaultEncryptedUnicode)�NativeJinjaText)�wrap_varTF)�true�false�nullc��eZdZd�ZdS)�Json2Pythonc�l�|jtvr|Stjt|j���S)N)�value)�id�	_JSON_MAP�ast�Constant)�self�nodes  �D/usr/lib/python3.11/site-packages/ansible/template/native_helpers.py�
visit_NamezJson2Python.visit_Names.���7�)�#�#��K��|�)�D�G�"4�5�5�5�5�N)�__name__�
__module__�__qualname__r�rrrrs#������6�6�6�6�6rrc
��tt|d����}|sdSt|��dkr/|d}t|t��r|St|��}nDt|t��rt||��}d�d�|D����}|�	d��s|dvr�t|d��}	tjtj
t���tj|d	�
��������}|rt#|��}n#t$t&t(f$rYnwxYw|S)anReturn a string of concatenated compiled nodes. Throw an undefined error
    if any of the nodes is undefined.

    If the result of concat appears to be a dictionary, list or bool,
    try and convert it to such using literal_eval, the same mechanism as used
    in jinja2_native.

    Used in Templar.template() when jinja2_native=False and convert_data=True.
    ���rc�,�g|]}t|����Sr"r	��.0�vs  r�
<listcomp>z'ansible_eval_concat.<locals>.<listcomp>;���1�1�1�a�w�q�z�z�1�1�1r)�{�[)�True�False�
__UNSAFE__�eval��mode)�listr�len�
isinstancer
r
rr�join�
startswith�hasattrr�literal_eval�fix_missing_locationsr�visit�parser�
ValueError�SyntaxError�MemoryError)�nodes�head�out�unsafes    r�ansible_eval_concatrF"sk����u�a� � �!�!�D����r�
�4�y�y�A�~�~��1�g���c�?�+�+�	��J��c�l�l����e�]�+�+�	'��$��&�&�E��g�g�1�1�5�1�1�1�2�2���~�~�j�!�!�$�S�,=�%=�%=���l�+�+��	$��"��)��M�M�'�'��	�#�F�3�3�3�������C��
$��s�m�m����	�K��5�	�	�	��D�	�����Js�AD=�=E�Ec�@�d�d�|D����S)aReturn a string of concatenated compiled nodes. Throw an undefined error
    if any of the nodes is undefined. Other than that it is equivalent to
    Jinja2's default concat function.

    Used in Templar.template() when jinja2_native=False and convert_data=False.
    r%c�,�g|]}t|����Sr"r	r(s  rr+z"ansible_concat.<locals>.<listcomp>Xs��.�.�.�1�G�A�J�J�.�.�.r)r8)rBs r�ansible_concatrIQs%���7�7�.�.��.�.�.�/�/�/rc�x�tt|d����}|sdSt|��dkrS|d}t|t��r|jSt|t��r|St|t��s|SnDt|t��rt||��}d�
d�|D����}	tjtj
|d�����}n#ttt f$r|cYSwxYwt|t��r|d}|�|�|��S|S)	a�Return a native Python type from the list of compiled nodes. If the
    result is a single node, its value is returned. Otherwise, the nodes are
    concatenated as strings. If the result can be parsed with
    :func:`ast.literal_eval`, the parsed value is returned. Otherwise, the
    string is returned.

    https://github.com/pallets/jinja/blob/master/src/jinja2/nativetypes.py
    r$Nr&rr%c�,�g|]}t|����Sr"r	r(s  rr+z)ansible_native_concat.<locals>.<listcomp>�r,rr2r3)r5rr6r7r�datar
rrrr8rr;r>r?r@rA)rBrCrD�evaled�quotes     r�ansible_native_concatrO[sh����u�a� � �!�!�D����t�
�4�y�y�A�~�~��1�g���c�7�8�8�	��8�O��c�?�+�+�	��J��#�|�,�,�	��J�	��e�]�+�+�	'��$��&�&�E��g�g�1�1�5�1�1�1�2�2����!�
�I�c��'�'�'�	
�
����
��[�1�����
�
�
������&�,�'�'�)��A����(��(��(�(�(��Ms�
(C6�6D�D)�
__future__rrr�type�
__metaclass__r�	itertoolsrr�typesr�ansible.module_utils._textr
�ansible.module_utils.sixr�ansible.parsing.yaml.objectsr�ansible.utils.native_jinjar
�ansible.utils.unsafe_proxyrr�NodeTransformerrrFrIrOr"rr�<module>r[s6��
C�B�B�B�B�B�B�B�B�B��
��
�
�
�#�#�#�#�#�#�#�#�������.�.�.�.�.�.�1�1�1�1�1�1�E�E�E�E�E�E�6�6�6�6�6�6�/�/�/�/�/�/�
�
��
�
�	�6�6�6�6�6�#�%�6�6�6�,�,�,�^0�0�0�5�5�5�5�5r

Youez - 2016 - github.com/yon3zu
LinuXploit