mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01:00
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.
This commit is contained in:
committed by
Marc Bonnici
parent
c3ddb31d4d
commit
b3de85455a
@@ -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)
|
||||
|
Reference in New Issue
Block a user