diff options
author | Gabe Black <gabeblack@google.com> | 2018-03-05 22:51:34 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-03-06 23:39:43 +0000 |
commit | 659900aedd1b4fc69b61b5dbaee39dba26848637 (patch) | |
tree | 586dcfc17855c54a4985f596a145730cdeab7309 /configs/example/fs.py | |
parent | 0bb50e6745b35c785c4d8051eb43f6bc419fb924 (diff) | |
download | gem5-659900aedd1b4fc69b61b5dbaee39dba26848637.tar.xz |
config: Switch from the print statement to the print function.
Change-Id: I701fa58cfcfa2767ce9ad24da314a053889878d0
Reviewed-on: https://gem5-review.googlesource.com/8762
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Anthony Gutierrez <anthony.gutierrez@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'configs/example/fs.py')
-rw-r--r-- | configs/example/fs.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/configs/example/fs.py b/configs/example/fs.py index f7115eb48..0f87e2b3a 100644 --- a/configs/example/fs.py +++ b/configs/example/fs.py @@ -41,6 +41,8 @@ # Authors: Ali Saidi # Brad Beckmann +from __future__ import print_function + import optparse import sys @@ -74,8 +76,8 @@ def is_kvm_cpu(cpu_class): def cmd_line_template(): if options.command_line and options.command_line_file: - print "Error: --command-line and --command-line-file are " \ - "mutually exclusive" + print("Error: --command-line and --command-line-file are " + "mutually exclusive") sys.exit(1) if options.command_line: return options.command_line @@ -310,7 +312,7 @@ if '--ruby' in sys.argv: (options, args) = parser.parse_args() if args: - print "Error: script doesn't take any positional arguments" + print("Error: script doesn't take any positional arguments") sys.exit(1) # system under test can be any CPU @@ -323,8 +325,8 @@ if options.benchmark: try: bm = Benchmarks[options.benchmark] except KeyError: - print "Error benchmark %s has not been defined." % options.benchmark - print "Valid benchmarks are: %s" % DefinedBenchmarks + print("Error benchmark %s has not been defined." % options.benchmark) + print("Valid benchmarks are: %s" % DefinedBenchmarks) sys.exit(1) else: if options.dual: @@ -357,7 +359,7 @@ elif len(bm) == 1 and options.dist: elif len(bm) == 1: root = Root(full_system=True, system=test_sys) else: - print "Error I don't know how to create more than 2 systems." + print("Error I don't know how to create more than 2 systems.") sys.exit(1) if options.timesync: |