
    /JfN                     0    d dl Z d dlmZ 	 ddZd Zd ZdS )    N)merge_dictsc                 
   |                     | i           }t          ||           dt          j        |                     di                     i}t          ||           t	          ||           |t          ||           |S )N__default__)getresolve_referencescopydeepcopyr   _merge_client_retry_config)endpoint_prefixretry_modeldefinitionsclient_retry_configservice_configfinal_retry_configs         U/home/alex/cs2snipeproduction/venv/lib/python3.11/site-packages/botocore/translate.pybuild_retry_configr      s     !___b99N~{333 	t}[__]B%G%GHH );777"N333&"#57JKKK    c                 T    |                     d          }||dz   | d         d<   d S d S )Nmax_attempts   r   )r   )retry_configr   max_retry_attempts_overrides      r   r
   r
   *   sC    "5"9"9."I"I". (!+ 	]#N333 /.r   c                 b   |                                  D ]\  }}t          |t                    rt          |          dk    r\t	          |                                          d         dk    r1|t	          |                                          d                  | |<   t          ||           dS )aJ  Recursively 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.

    r   r   z$refN)items
isinstancedictlenlistkeysvaluesr   )configr   keyvalues       r   r   r   =   s     llnn 7 7
UeT"" 	75zzQ4

#5#5a#8F#B#B)$u||~~*>*>q*ABs"5+6667 7r   )N)r   botocore.utilsr   r   r
   r    r   r   <module>r&      se     & & & & & & DH   .
 
 
&7 7 7 7 7r   