summaryrefslogtreecommitdiff
path: root/ext/systemc/src/sysc/qt/SConscript.sc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-03-05 22:05:47 -0800
committerGabe Black <gabeblack@google.com>2018-03-06 23:39:01 +0000
commit0bb50e6745b35c785c4d8051eb43f6bc419fb924 (patch)
tree97dfd086d6e4b3f4252aec459091ff6dad19f2b6 /ext/systemc/src/sysc/qt/SConscript.sc
parent10e5646dbbe46aa317ec568cb2a58968ca867575 (diff)
downloadgem5-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 'ext/systemc/src/sysc/qt/SConscript.sc')
-rw-r--r--ext/systemc/src/sysc/qt/SConscript.sc6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/systemc/src/sysc/qt/SConscript.sc b/ext/systemc/src/sysc/qt/SConscript.sc
index 5ffb0d3aa..c2e8baf8e 100644
--- a/ext/systemc/src/sysc/qt/SConscript.sc
+++ b/ext/systemc/src/sysc/qt/SConscript.sc
@@ -23,6 +23,8 @@
# Authors: Christian Menard
# Matthias Jung
+from __future__ import print_function
+
import os
Import('systemc', 'SystemCSource')
@@ -32,11 +34,11 @@ if systemc['COROUTINE_LIB'] == 'qt':
qt_arch = systemc.get('QT_ARCH', None)
if not qt_arch:
- print 'No architecture selected for the QT coroutine library.'
+ print('No architecture selected for the QT coroutine library.')
Exit(1)
if qt_arch in ('i386', 'iX86_64'):
SystemCSource(os.path.join('md', qt_arch + '.s'))
else:
- print 'Don\'t know what to do for QT arch %s.' % qt_arch
+ print('Don\'t know what to do for QT arch %s.' % qt_arch)
Exit(1)