1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 20:11:20 +00:00

docs: Update python2 style print statements

This commit is contained in:
Marc Bonnici 2020-05-18 16:55:26 +01:00 committed by setrofim
parent 2d32d81acb
commit ecbfe32b9d
2 changed files with 7 additions and 7 deletions

View File

@ -336,6 +336,6 @@ recordings in scripts. Here is an example:
from wa.utils.revent import ReventRecording
with ReventRecording('/path/to/recording.revent') as recording:
print "Recording: {}".format(recording.filepath)
print "There are {} input events".format(recording.num_events)
print "Over a total of {} seconds".format(recording.duration)
print("Recording: {}".format(recording.filepath))
print("There are {} input events".format(recording.num_events))
print("Over a total of {} seconds".format(recording.duration))

View File

@ -483,14 +483,14 @@ that parses the contents of the output directory:
>>> ro = RunOutput('./wa_output')
>>> for job in ro.jobs:
... if job.status != 'OK':
... print 'Job "{}" did not complete successfully: {}'.format(job, job.status)
... print('Job "{}" did not complete successfully: {}'.format(job, job.status))
... continue
... print 'Job "{}":'.format(job)
... print('Job "{}":'.format(job))
... for metric in job.metrics:
... if metric.units:
... print '\t{}: {} {}'.format(metric.name, metric.value, metric.units)
... print('\t{}: {} {}'.format(metric.name, metric.value, metric.units))
... else:
... print '\t{}: {}'.format(metric.name, metric.value)
... print('\t{}: {}'.format(metric.name, metric.value))
...
Job "wk1-dhrystone-1":
thread 0 score: 20833333