diff options
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.""" |