From 8cd2ae322e6119029f88c2b0b6b948abcb363bad Mon Sep 17 00:00:00 2001 From: Artem Pavlenko Date: Wed, 22 Nov 2017 14:56:20 +0100 Subject: [PATCH] support both python 2 and 3. --- SConstruct | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index 1bf3750d3..fb9a84c17 100644 --- a/SConstruct +++ b/SConstruct @@ -16,6 +16,7 @@ # License along with this library; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +from __future__ import print_function # support python2 import os import sys @@ -146,13 +147,13 @@ def color_print(color,text,newline=True): # 4 - blue text = "\033[9%sm%s\033[0m" % (color,text) if not newline: - print(text, end=" ") + print (text, end='') else: print (text) def regular_print(color,text,newline=True): if not newline: - print (text, end = " ") + print (text, end = '') else: print (text) @@ -1793,7 +1794,7 @@ if not preconfigured: env['HAS_CAIRO'] = False env['SKIPPED_DEPS'].append('cairo') else: - print ('Checking for cairo lib and include paths... ', end=" ") + print ('Checking for cairo lib and include paths... ', end = '') cmd = 'pkg-config --libs --cflags cairo' if env['RUNTIME_LINK'] == 'static': cmd += ' --static'