mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-07-15 19:43:28 +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
doc/source
setup.pywa
commands
framework
configuration
exception.pyexecution.pygetters.pyhost.pyinstrument.pyjob.pyoutput.pyplugin.pypluginloader.pyresource.pyrun.pytarget
version.pyinstruments
output_processors
utils
cpustates.pydiff.pydoc.pyexec_control.pylog.pymisc.pyrevent.pyserializer.pyterminalsize.pytrace_cmd.pytypes.py
workloads
exoplayer
hackbench
jankbench
meabo
openssl
sysbench
vellamo
@ -58,11 +58,11 @@ class HwmonInstrument(Instrument):
|
||||
measurements_before = {m.channel.label: m for m in self.before}
|
||||
measurements_after = {m.channel.label: m for m in self.after}
|
||||
|
||||
if measurements_before.keys() != measurements_after.keys():
|
||||
if list(measurements_before.keys()) != list(measurements_after.keys()):
|
||||
self.logger.warning(
|
||||
'hwmon before/after measurements returned different entries!')
|
||||
|
||||
for label, measurement_after in measurements_after.iteritems():
|
||||
for label, measurement_after in measurements_after.items():
|
||||
if label not in measurements_before:
|
||||
continue # We've already warned about this
|
||||
measurement_before = measurements_before[label]
|
||||
|
Reference in New Issue
Block a user