Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / tools / scons / Configure.py
index 94db96b..f41cdab 100644 (file)
@@ -32,7 +32,7 @@ import SCons.Builder, SCons.Node, SCons.Errors
 # @param source source name
 # @param env environment object
 def __message( s, target, source, env ) :
-    print "Configuring using [%s] ..." % (source[0])
+    print("Configuring using [%s] ..." % (source[0]))
 
 # Create the action
 #
@@ -63,7 +63,7 @@ def __action( target, source, env ) :
     devnull = open(os.devnull, "wb")
     handle  = subprocess.Popen( cmd, shell=True, cwd=cwd, stdout=devnull )
 
-    if handle.wait() <> 0 :
+    if handle.wait() != 0 :
         raise SCons.Errors.BuildError( "Configuring script [%s] on the source [%s]" % (cmd, source[0])  )
 
 # Define the builder's emitter