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/common/PlatformConfig.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/common/PlatformConfig.py')
-rw-r--r-- | configs/common/PlatformConfig.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/configs/common/PlatformConfig.py b/configs/common/PlatformConfig.py index e2589c058..34325f315 100644 --- a/configs/common/PlatformConfig.py +++ b/configs/common/PlatformConfig.py @@ -38,6 +38,8 @@ # Authors: Andreas Sandberg # Pierre-Yves Peneau +from __future__ import print_function + import m5.objects import inspect import sys @@ -83,22 +85,22 @@ def get(name): def print_platform_list(): """Print a list of available Platform classes including their aliases.""" - print "Available Platform classes:" + print("Available Platform classes:") doc_wrapper = TextWrapper(initial_indent="\t\t", subsequent_indent="\t\t") for name, cls in _platform_classes.items(): - print "\t%s" % name + print("\t%s" % name) # Try to extract the class documentation from the class help # string. doc = inspect.getdoc(cls) if doc: for line in doc_wrapper.wrap(doc): - print line + print(line) if _platform_aliases: - print "\Platform aliases:" + print("\Platform aliases:") for alias, target in _platform_aliases.items(): - print "\t%s => %s" % (alias, target) + print("\t%s => %s" % (alias, target)) def platform_names(): """Return a list of valid Platform names.""" |