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

Unified Diff: third_party/gsutil/third_party/boto/tests/mturk/_init_environment.py

Issue 1380943003: Roll version of gsutil to 4.15. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 5 years 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
Index: third_party/gsutil/third_party/boto/tests/mturk/_init_environment.py
diff --git a/third_party/gsutil/third_party/boto/tests/mturk/_init_environment.py b/third_party/gsutil/third_party/boto/tests/mturk/_init_environment.py
index a9306974f16a75f1a0cd01ab0d4885691536b361..3ca5cf6d81ea6774ed8d9c95c62bc5367de78d23 100644
--- a/third_party/gsutil/third_party/boto/tests/mturk/_init_environment.py
+++ b/third_party/gsutil/third_party/boto/tests/mturk/_init_environment.py
@@ -1,28 +1,28 @@
-import os
-import functools
-
-live_connection = False
-mturk_host = 'mechanicalturk.sandbox.amazonaws.com'
-external_url = 'http://www.example.com/'
-
-
-SetHostMTurkConnection = None
-
-def config_environment():
- global SetHostMTurkConnection
- try:
- local = os.path.join(os.path.dirname(__file__), 'local.py')
- execfile(local)
- except:
- pass
-
- if live_connection:
- #TODO: you must set the auth credentials to something valid
- from boto.mturk.connection import MTurkConnection
- else:
- # Here the credentials must be set, but it doesn't matter what
- # they're set to.
- os.environ.setdefault('AWS_ACCESS_KEY_ID', 'foo')
- os.environ.setdefault('AWS_SECRET_ACCESS_KEY', 'bar')
- from mocks import MTurkConnection
- SetHostMTurkConnection = functools.partial(MTurkConnection, host=mturk_host)
+import os
+import functools
+
+live_connection = False
+mturk_host = 'mechanicalturk.sandbox.amazonaws.com'
+external_url = 'http://www.example.com/'
+
+
+SetHostMTurkConnection = None
+
+def config_environment():
+ global SetHostMTurkConnection
+ try:
+ local = os.path.join(os.path.dirname(__file__), 'local.py')
+ execfile(local)
+ except:
+ pass
+
+ if live_connection:
+ #TODO: you must set the auth credentials to something valid
+ from boto.mturk.connection import MTurkConnection
+ else:
+ # Here the credentials must be set, but it doesn't matter what
+ # they're set to.
+ os.environ.setdefault('AWS_ACCESS_KEY_ID', 'foo')
+ os.environ.setdefault('AWS_SECRET_ACCESS_KEY', 'bar')
+ from mocks import MTurkConnection
+ SetHostMTurkConnection = functools.partial(MTurkConnection, host=mturk_host)
« no previous file with comments | « third_party/gsutil/third_party/boto/tests/mturk/.gitignore ('k') | third_party/gsutil/third_party/boto/tests/mturk/common.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698