From 7d48219b3ac78895315ea6cef3ced3e55d3d92f0 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Tue, 19 Sep 2017 13:56:34 +0100 Subject: scons: use python3-compatible print() These changes were generated using python's `2to3` tool. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102852 Reported-by: Alex Granni Signed-off-by: Eric Engestrom Reviewed-by: Jose Fonseca --- src/gallium/drivers/llvmpipe/SConscript | 2 +- src/gallium/drivers/svga/SConscript | 2 +- src/gallium/drivers/swr/SConscript | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/gallium/drivers') diff --git a/src/gallium/drivers/llvmpipe/SConscript b/src/gallium/drivers/llvmpipe/SConscript index fbbd22a5299..74d7a9e1673 100644 --- a/src/gallium/drivers/llvmpipe/SConscript +++ b/src/gallium/drivers/llvmpipe/SConscript @@ -4,7 +4,7 @@ import distutils.version Import('*') if not env['llvm']: - print 'warning: LLVM disabled: not building llvmpipe' + print('warning: LLVM disabled: not building llvmpipe') Return() env = env.Clone() diff --git a/src/gallium/drivers/svga/SConscript b/src/gallium/drivers/svga/SConscript index 2d60ceb2be5..9c4806c7158 100644 --- a/src/gallium/drivers/svga/SConscript +++ b/src/gallium/drivers/svga/SConscript @@ -5,7 +5,7 @@ env = env.Clone() env.MSVC2013Compat() if env['suncc']: - print 'warning: not building svga' + print('warning: not building svga') Return() env.Append(CPPDEFINES = [ diff --git a/src/gallium/drivers/swr/SConscript b/src/gallium/drivers/swr/SConscript index b394cbc17e3..fdced66463c 100644 --- a/src/gallium/drivers/swr/SConscript +++ b/src/gallium/drivers/swr/SConscript @@ -8,12 +8,12 @@ if not env['swr']: Return() if not env['llvm']: - print 'warning: LLVM disabled: not building swr' + print('warning: LLVM disabled: not building swr') env['swr'] = False Return() if env['LLVM_VERSION'] < distutils.version.LooseVersion('3.9'): - print "warning: swr requires LLVM >= 3.9: not building swr" + print("warning: swr requires LLVM >= 3.9: not building swr") env['swr'] = False Return() @@ -28,7 +28,7 @@ if env['platform'] == 'windows': else: llvm_config = os.environ.get('LLVM_CONFIG', 'llvm-config') llvm_includedir = env.backtick('%s --includedir' % llvm_config).rstrip() - print "llvm include dir %s" % llvm_includedir + print("llvm include dir %s" % llvm_includedir) if not env['msvc'] : env.Append(CCFLAGS = [ -- cgit v1.2.3