File: //home/arjun/projects/env/lib/python3.10/site-packages/boto/__pycache__/regioninfo.cpython-310.pyc
o
we% � @ s� d dl Z d dlZd dlmZ d dlmZ d dlmZ d dlmZ i Z dd� Z
dd � Zd
d� Zdd
� Z
e fdd�Zddd�Z ddd�Z ddd�Z ddd�Zdd� ZG dd� de�ZdS )� N)�json)�BotoClientError)�BotoEndpointResolver)�StaticEndpointBuilderc C s t | �S )��
Loads a given JSON file & returns it.
:param path: The path to the JSON file
:type path: string
:returns: The loaded data
)�_load_json_file)�path� r �H/home/arjun/projects/env/lib/python3.10/site-packages/boto/regioninfo.py�load_endpoint_json# s r c C s8 t | d��
}t�|�W d � S 1 sw Y dS )r �rN)�openr �load)r �endpoints_filer r r
r / s $�r c C s0 |� � D ]\}}| �|i � | | �|� q| S )aW
Given an existing set of endpoint data, this will deep-update it with
any similarly structured data in the additions.
:param defaults: The existing endpoints data
:type defaults: dict
:param defaults: The additional endpoints data
:type defaults: dict
:returns: The modified endpoints data
:rtype: dict
)�items�
setdefault�update)�defaults� additions�service�region_infor r r
�merge_endpoints<