HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/botocore/__pycache__/translate.cpython-36.pyc
3

�T_T
�@s2ddlZddlmZd	dd�Zdd�Zdd�ZdS)
�N)�merge_dictscCsV|j|i�}t||�dtj|jdi��i}t||�t||�|dk	rRt||�|S)N�__default__)�get�resolve_references�copy�deepcopyr�_merge_client_retry_config)Zendpoint_prefixZretry_model�definitions�client_retry_configZservice_configZfinal_retry_config�r�/usr/lib/python3.6/translate.py�build_retry_configs
	


r
cCs&|jd�}|dk	r"|d|dd<dS)NZmax_attempts�r)r)Zretry_configr
Zmax_retry_attempts_overriderrrr)s

rcCshxb|j�D]V\}}t|t�r
t|�dkrVt|j��ddkrV|t|j��d||<q
t||�q
WdS)aJRecursively replace $ref keys.

    To cut down on duplication, common definitions can be declared
    (and passed in via the ``definitions`` attribute) and then
    references as {"$ref": "name"}, when this happens the reference
    dict is placed with the value from the ``definition`` dict.

    This is recursively done.

    rrz$refN)�items�
isinstance�dict�len�list�keys�valuesr)�configr	�key�valuerrrr;s

 r)N)rZbotocore.utilsrr
rrrrrr�<module>s