diff options
author | Gabe Black <gabeblack@google.com> | 2018-03-05 22:05:47 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-03-06 23:39:01 +0000 |
commit | 0bb50e6745b35c785c4d8051eb43f6bc419fb924 (patch) | |
tree | 97dfd086d6e4b3f4252aec459091ff6dad19f2b6 /src/unittest | |
parent | 10e5646dbbe46aa317ec568cb2a58968ca867575 (diff) | |
download | gem5-0bb50e6745b35c785c4d8051eb43f6bc419fb924.tar.xz |
scons: Switch from the print statement to the print function.
Starting with version 3, scons imposes using the print function instead
of the print statement in code it processes. To get things building
again, this change moves all python code within gem5 to use the
function version. Another change by another author separately made this
same change to the site_tools and site_init.py files.
Change-Id: I2de7dc3b1be756baad6f60574c47c8b7e80ea3b0
Reviewed-on: https://gem5-review.googlesource.com/8761
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/unittest')
-rwxr-xr-x | src/unittest/genini.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/unittest/genini.py b/src/unittest/genini.py index 19e6442de..5a4f3454b 100755 --- a/src/unittest/genini.py +++ b/src/unittest/genini.py @@ -27,6 +27,8 @@ # # Authors: Nathan Binkert +from __future__ import print_function + import getopt, os, os.path, sys from os.path import join as joinpath, realpath @@ -71,4 +73,4 @@ for arg in args: if globals().has_key('root') and isinstance(root, Root): instantiate(root) else: - print "Instantiation skipped: no root object found." + print("Instantiation skipped: no root object found.") |