diff --git a/doc/source/developer_information/developer_reference/revent.rst b/doc/source/developer_information/developer_reference/revent.rst index 6ff6e268..1ca719aa 100644 --- a/doc/source/developer_information/developer_reference/revent.rst +++ b/doc/source/developer_information/developer_reference/revent.rst @@ -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)) diff --git a/doc/source/user_information/user_guide.rst b/doc/source/user_information/user_guide.rst index 49cc8d39..b25edbbd 100644 --- a/doc/source/user_information/user_guide.rst +++ b/doc/source/user_information/user_guide.rst @@ -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