diff options
author | Zhizhou Yang <zhizhouy@google.com> | 2020-01-15 16:25:04 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-01-30 00:33:44 +0000 |
commit | 5534af8f4f31df22ca307e3e3faa16487fa3d2d2 (patch) | |
tree | 771f9865e956551c7c70c3de99fad0b72aef52ce /crosperf/results_organizer.py | |
parent | 658d77957b84def71c77d25229df9845fdb7ee9c (diff) | |
download | toolchain-utils-5534af8f4f31df22ca307e3e3faa16487fa3d2d2.tar.gz |
crosperf: migration to python 3
This patch migrates crosperf and its utils to python 3.
TEST=Passed presubmit check; tested with simple experiment locally.
BUG=chromium:1011676
Change-Id: Ib2a9f9c7cf6a1bb1d0b42a1dd3d9e3cbb4d70a36
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2003796
Tested-by: Zhizhou Yang <zhizhouy@google.com>
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Caroline Tice <cmtice@chromium.org>
Commit-Queue: Zhizhou Yang <zhizhouy@google.com>
Auto-Submit: Zhizhou Yang <zhizhouy@google.com>
Diffstat (limited to 'crosperf/results_organizer.py')
-rw-r--r-- | crosperf/results_organizer.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crosperf/results_organizer.py b/crosperf/results_organizer.py index 4879caeb..674745fb 100644 --- a/crosperf/results_organizer.py +++ b/crosperf/results_organizer.py @@ -80,7 +80,7 @@ def _GetNonDupLabel(max_dup, runs): # pylint: disable=cell-var-from-loop added_runs = _Repeat( lambda: _DictWithReturnValues(run_retval, run_pass_fail), max_dup) - for key, value in run.iteritems(): + for key, value in run.items(): match = _DUP_KEY_REGEX.match(key) if not match: new_run[key] = value @@ -94,7 +94,7 @@ def _GetNonDupLabel(max_dup, runs): def _DuplicatePass(result, benchmarks): """Properly expands keys like `foo{1}` in `result`.""" - for bench, data in result.iteritems(): + for bench, data in result.items(): max_dup = _GetMaxDup(data) # If there's nothing to expand, there's nothing to do. if not max_dup: |