From 659900aedd1b4fc69b61b5dbaee39dba26848637 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 5 Mar 2018 22:51:34 -0800 Subject: 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 Reviewed-by: Jason Lowe-Power Reviewed-by: Anthony Gutierrez Maintainer: Gabe Black --- configs/example/garnet_synth_traffic.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'configs/example/garnet_synth_traffic.py') diff --git a/configs/example/garnet_synth_traffic.py b/configs/example/garnet_synth_traffic.py index 0cb1fae9f..92fb3a047 100644 --- a/configs/example/garnet_synth_traffic.py +++ b/configs/example/garnet_synth_traffic.py @@ -26,6 +26,8 @@ # # Author: Tushar Krishna +from __future__ import print_function + import m5 from m5.objects import * from m5.defines import buildEnv @@ -90,14 +92,13 @@ execfile(os.path.join(config_root, "common", "Options.py")) (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) if options.inj_vnet > 2: - print "Error: Injection vnet %d should be 0 (1-flit), 1 (1-flit) \ - or 2 (5-flit) or -1 (random)"\ - % (options.inj_vnet) + print("Error: Injection vnet %d should be 0 (1-flit), 1 (1-flit) " + "or 2 (5-flit) or -1 (random)" % (options.inj_vnet)) sys.exit(1) @@ -153,4 +154,4 @@ m5.instantiate() # simulate until program terminates exit_event = m5.simulate(options.abs_max_tick) -print 'Exiting @ tick', m5.curTick(), 'because', exit_event.getCause() +print('Exiting @ tick', m5.curTick(), 'because', exit_event.getCause()) -- cgit v1.2.3