U
    W+d                     @   s8   d dl mZ d dlmZ d dlmZ dd Zdd ZdS )	    )SDBRegionInfo)get_regions)connectc                   C   s   t dtdS )z
    Get all available regions for the SDB service.

    :rtype: list
    :return: A list of :class:`boto.sdb.regioninfo.RegionInfo` instances
    sdb)
region_cls)r   r    r   r   5/tmp/pip-unpacked-wheel-dlxw5sjy/boto/sdb/__init__.pyregions   s    r	   c                 K   s   t d| fdti|S )aV  
    Given a valid region name, return a
    :class:`boto.sdb.connection.SDBConnection`.

    :type: str
    :param region_name: The name of the region to connect to.

    :rtype: :class:`boto.sdb.connection.SDBConnection` or ``None``
    :return: A connection to the given region, or None if an invalid region
             name is given
    r   r   )r   r   )Zregion_nameZ	kw_paramsr   r   r   connect_to_region)   s    r
   N)Zboto.sdb.regioninfor   Zboto.regioninfor   r   r	   r
   r   r   r   r   <module>   s   