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

Unified Diff: tools/telemetry/third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py

Issue 1258583006: Add gsutil 4.13 to telemetry/third_party (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo all other changes so this just add gsutil to third_party Created 5 years, 5 months 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: tools/telemetry/third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py
diff --git a/tools/telemetry/third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py b/tools/telemetry/third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py
new file mode 100644
index 0000000000000000000000000000000000000000..3c28e19d018da1a35df33bebcc78b420ae7609d0
--- /dev/null
+++ b/tools/telemetry/third_party/gsutil/gslib/third_party/storage_apitools/credentials_lib.py
@@ -0,0 +1,13 @@
+"""Shim for backwards-compatibility for moving GCE credentials.
+
+oauth2client loads credentials classes based on the module name where
+they were created; this means that moving GceAssertionCredentials from
+here to third_party requires a shim mapping the old name to the new
+one. Once loaded, the credential will be re-serialized with the new
+path, meaning that we can (at some point) consider removing this file.
+"""
+
+# TODO: Remove this module once this change has been around long
+# enough that old credentials are likely to be rare.
+
+from apitools.base.py import GceAssertionCredentials

Powered by Google App Engine
This is Rietveld 408576698