Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: third_party/boto/boto/dynamodb2/__init__.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/boto/boto/dynamodb/layer2.py ('k') | third_party/boto/boto/dynamodb2/exceptions.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/boto/dynamodb2/__init__.py
===================================================================
--- third_party/boto/boto/dynamodb2/__init__.py (revision 33376)
+++ third_party/boto/boto/dynamodb2/__init__.py (working copy)
@@ -21,7 +21,7 @@
# IN THE SOFTWARE.
#
-from boto.regioninfo import RegionInfo
+from boto.regioninfo import RegionInfo, get_regions
def regions():
@@ -32,37 +32,7 @@
:return: A list of :class:`boto.regioninfo.RegionInfo`
"""
from boto.dynamodb2.layer1 import DynamoDBConnection
- return [RegionInfo(name='us-east-1',
- endpoint='dynamodb.us-east-1.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='us-gov-west-1',
- endpoint='dynamodb.us-gov-west-1.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='us-west-1',
- endpoint='dynamodb.us-west-1.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='us-west-2',
- endpoint='dynamodb.us-west-2.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='eu-west-1',
- endpoint='dynamodb.eu-west-1.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='ap-northeast-1',
- endpoint='dynamodb.ap-northeast-1.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='ap-southeast-1',
- endpoint='dynamodb.ap-southeast-1.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='ap-southeast-2',
- endpoint='dynamodb.ap-southeast-2.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='sa-east-1',
- endpoint='dynamodb.sa-east-1.amazonaws.com',
- connection_cls=DynamoDBConnection),
- RegionInfo(name='cn-north-1',
- endpoint='dynamodb.cn-north-1.amazonaws.com.cn',
- connection_cls=DynamoDBConnection),
- ]
+ return get_regions('dynamodb', connection_cls=DynamoDBConnection)
def connect_to_region(region_name, **kw_params):
« no previous file with comments | « third_party/boto/boto/dynamodb/layer2.py ('k') | third_party/boto/boto/dynamodb2/exceptions.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698