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

Unified Diff: third_party/boto/boto/dynamodb/layer1.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/__init__.py ('k') | third_party/boto/boto/dynamodb/layer2.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/boto/boto/dynamodb/layer1.py
===================================================================
--- third_party/boto/boto/dynamodb/layer1.py (revision 33376)
+++ third_party/boto/boto/dynamodb/layer1.py (working copy)
@@ -74,7 +74,7 @@
def __init__(self, aws_access_key_id=None, aws_secret_access_key=None,
is_secure=True, port=None, proxy=None, proxy_port=None,
debug=0, security_token=None, region=None,
- validate_certs=True, validate_checksums=True):
+ validate_certs=True, validate_checksums=True, profile_name=None):
if not region:
region_name = boto.config.get('DynamoDB', 'region',
self.DefaultRegionName)
@@ -89,7 +89,8 @@
aws_secret_access_key,
is_secure, port, proxy, proxy_port,
debug=debug, security_token=security_token,
- validate_certs=validate_certs)
+ validate_certs=validate_certs,
+ profile_name=profile_name)
self.throughput_exceeded_events = 0
self._validate_checksums = boto.config.getbool(
'DynamoDB', 'validate_checksums', validate_checksums)
@@ -172,7 +173,8 @@
if i == 0:
next_sleep = 0
else:
- next_sleep = 0.05 * (2 ** i)
+ next_sleep = min(0.05 * (2 ** i),
+ boto.config.get('Boto', 'max_retry_delay', 60))
return next_sleep
def list_tables(self, limit=None, start_table=None):
« no previous file with comments | « third_party/boto/boto/dynamodb/__init__.py ('k') | third_party/boto/boto/dynamodb/layer2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698