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

Unified Diff: tools/auto_bisect/cloud_storage_wrapper.py

Issue 548233002: Add a module to fetch builds from different types of builders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated comments Created 6 years, 3 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/auto_bisect/cloud_storage_wrapper.py
diff --git a/tools/auto_bisect/cloud_storage_wrapper.py b/tools/auto_bisect/cloud_storage_wrapper.py
new file mode 100644
index 0000000000000000000000000000000000000000..3fdc3e64457d6fa1fc4607864cb7656dcb24b00f
--- /dev/null
+++ b/tools/auto_bisect/cloud_storage_wrapper.py
@@ -0,0 +1,19 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+"""An intermediary used to import the third-party cloud_storage module."""
+
+import os
+import sys
+
+sys.path.append(os.path.join(
+ os.path.dirname(__file__), os.path.pardir, os.path.pardir,
+ 'telemetry'))
+
+# Pylint is unable to import (F0401) because pylint doesn't modify sys.path.
+# A wildcard import is used below (W0401) to get everything from the module.
+# The names imported here are not used in this module (W0614).
+# pylint: disable=F0401,W0401,W0614
+from telemetry.util.cloud_storage import *
ghost stip (do not use) 2014/09/17 00:12:08 usually importing * is a bad idea.
qyearsley 2014/09/18 22:58:58 Changed this to import just the functions that are
+

Powered by Google App Engine
This is Rietveld 408576698