diff options
author | Sergei Trofimov <sergei.trofimov@arm.com> | 2018-05-30 13:58:49 +0100 |
---|---|---|
committer | Marc Bonnici <marc.bonnici@arm.com> | 2018-06-07 14:48:40 +0100 |
commit | b3de85455a872cd269187fb36263a17390f14d9c (patch) | |
tree | 6f958313086eaebfe64c27699c2c7527fb5facaf /wa/workloads/hackbench/__init__.py | |
parent | c3ddb31d4d8ce58251b4876882a757cd643c097f (diff) |
Add support for Python 3
Add support for running under Python 3, while maintaining compatibility
with Python 2.
See http://python-future.org/compatible_idioms.html for more details
behind these changes.
Diffstat (limited to 'wa/workloads/hackbench/__init__.py')
-rw-r--r-- | wa/workloads/hackbench/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wa/workloads/hackbench/__init__.py b/wa/workloads/hackbench/__init__.py index 70a2550f..8ba54a19 100644 --- a/wa/workloads/hackbench/__init__.py +++ b/wa/workloads/hackbench/__init__.py @@ -84,7 +84,7 @@ class Hackbench(Workload): results_file = context.get_artifact_path('hackbench-results') with open(results_file) as fh: for line in fh: - for label, (regex, units) in regex_map.iteritems(): + for label, (regex, units) in regex_map.items(): match = regex.search(line) if match: context.add_metric(label, float(match.group(1)), units) |