aboutsummaryrefslogtreecommitdiff
path: root/crosperf
diff options
context:
space:
mode:
authorJian Cai <jiancai@google.com>2019-07-24 19:29:30 -0700
committerJian Cai <jiancai@google.com>2019-07-25 22:06:17 +0000
commitfeaabc9323b55bc26513609058e1b542a536fb22 (patch)
tree7497c4d72fce148260ba2caf71d1b5464412a5ef /crosperf
parent9a6dae865659ce5e32694ae92bd3f1f7310d0049 (diff)
downloadtoolchain-utils-feaabc9323b55bc26513609058e1b542a536fb22.tar.gz
Toolchain-utils: replace xrange with range on results_cache.py
xrange builtint is replaced by range on Python3. Use range instead of xrange on results_cache.py. BUG=chromium:986617 TEST=local tests Change-Id: I729b12a92b75dbd355fad3012205765a648be538 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1717449 Tested-by: Jian Cai <jiancai@google.com> Reviewed-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'crosperf')
-rw-r--r--crosperf/results_cache.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/crosperf/results_cache.py b/crosperf/results_cache.py
index ab16e981..6124dbee 100644
--- a/crosperf/results_cache.py
+++ b/crosperf/results_cache.py
@@ -655,7 +655,7 @@ class TelemetryResult(Result):
fields = line.split(',')
if len(fields) != len(labels):
continue
- for i in xrange(1, len(labels)):
+ for i in range(1, len(labels)):
key = '%s %s' % (fields[0], labels[i])
value = fields[i]
self.keyvals[key] = value