aboutsummaryrefslogtreecommitdiff
path: root/update_telemetry_defaults.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-01-13 09:48:29 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-01-22 19:30:55 +0000
commit88272d479f2761cc1906fea564c73033f77a6270 (patch)
tree4da9c114d64522f59494a908cf9a85b09c994d32 /update_telemetry_defaults.py
parent439f2b77c86987362f53bd4f6e39896aa6d77f66 (diff)
downloadtoolchain-utils-88272d479f2761cc1906fea564c73033f77a6270.tar.gz
Fix cros lint errors.
Also move deprecated scripts to the 'deprecated' directory. BUG=chromiumos:570464 TEST=tested scripts to make sure they still work. Change-Id: I3442a86d898104591233a0849ea0bafb52ecf1f7 Reviewed-on: https://chrome-internal-review.googlesource.com/244221 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'update_telemetry_defaults.py')
-rwxr-xr-xupdate_telemetry_defaults.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/update_telemetry_defaults.py b/update_telemetry_defaults.py
index 6d83e143..9ee7d8b0 100755
--- a/update_telemetry_defaults.py
+++ b/update_telemetry_defaults.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python2
#
# Copyright 2013 Google Inc. All Rights Reserved.
"""Script to maintain the Telemetry benchmark default results file.
@@ -9,18 +9,21 @@ benchmarks.
"""
+from __future__ import print_function
+
__author__ = 'cmtice@google.com (Caroline Tice)'
import os
import sys
import json
-from utils import misc
+from cros_utils import misc
Defaults = {}
class TelemetryDefaults(object):
+ """Class for handling telemetry default return result fields."""
DEFAULTS_FILE_NAME = 'crosperf/default-telemetry-results.json'
@@ -111,7 +114,7 @@ class TelemetryDefaults(object):
self.ShowOptions()
def ShowOptions(self):
- print """
+ print("""
Below are the valid user options and their arguments, and an explanation
of what each option does. You may either print out the full name of the
option, or you may use the first letter of the option. Case (upper or
@@ -131,7 +134,7 @@ lower) does not matter, for the command (case of the result name DOES matter):
(Q)uit - Exit this program, saving changes.
(T)erminate - Exit this program; abandon changes.
-"""
+""")
def GetUserInput(self):
# Prompt user