%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/cloudinit/mergers/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/cloudinit/mergers/__pycache__/m_dict.cpython-312.pyc

�

���f{
��*�dZdefZd�ZGd�d�Zy)�
no_replace�replacec��|D]}||vs�yy)NTF�)�what�keys�ks   �:/usr/lib/python3/dist-packages/cloudinit/mergers/m_dict.py�_has_anyr
s ��
�����9����c�$�eZdZd�Zd�Zd�Zd�Zy)�Mergerc��||_t|_tD]}||vs�||_nd|v|_t|dd�|_d|v|_d|_y)N�recurse_str�
recurse_array�recurse_list�allow_deleteT)	�_merger�DEF_MERGE_TYPE�_method�MERGE_TYPES�_recurse_strr
�_recurse_array�
_allow_delete�
_recurse_dict)�self�merger�opts�ms    r	�__init__zMerger.__init__se�����%����	�A��D�y� ����	�
*�T�1���&�t�_�n�M���+�t�3���!��rc��d}||j|j|j|j|jfz}|S)NzWDictMerger: (method=%s,recurse_str=%s,recurse_dict=%s,recurse_array=%s,allow_delete=%s))rrrrr)r�ss  r	�__str__zMerger.__str__%sP��
@�	
�
��L�L�������������
�
���rc������fd�}|j�D]>\}}||vr0|��jr|j|��*||||�||<�:|||<�@|S)Nc�l���r|St|ttf�r(�jr�jj||�St|t�r(�jr�jj||�St|t�r(�jr�jj||�S|S)N)
�
isinstance�list�tuplerr�merge�strr�dictr)�old_v�new_v�
do_replacers  ��r	�merge_same_keyz/Merger._do_dict_replace.<locals>.merge_same_key4s��������%�$���/�D�4G�4G��|�|�)�)�%��7�7��%��%�$�*;�*;��|�|�)�)�%��7�7��%�$�(�T�-?�-?��|�|�)�)�%��7�7��Lr)�itemsr�pop)r�value�
merge_withr-r.r�vs`  `   r	�_do_dict_replacezMerger._do_dict_replace3si���
	��$�$�&�	�D�A�q��E�z��9��!3�!3��I�I�a�L�-�e�A�h��:�E�!�H���a��	��rc�
�t|t�s|S|jdk(r|jt|�|d�}|S|jdk(r|jt|�|d�}|St	d|jz��)NrTrFzUnknown merge type %s)r%r*rr4�NotImplementedError)rr1r2�mergeds    r	�_on_dictzMerger._on_dictJs����*�t�-��L��<�<�9�$��*�*�4��;�
�D�I�F�
�
�	�\�\�\�
)��*�*�4��;�
�E�J�F��
�&�&=����&N�O�OrN)�__name__�
__module__�__qualname__rr"r4r8rrr	r
r
s��
"���.	rr
N)rrr
r
rrr	�<module>r<s(����
�����>�>r

Zerion Mini Shell 1.0