diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 12:09:11 (GMT) |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-03-11 12:09:11 (GMT) |
commit | c14936494d79a00b533e7e8ce9a41e5176c1295f (patch) | |
tree | 079546afb1d6be21831851837d10f4af1d738018 /test/SConscript | |
parent | 055c8046afce036fdfad4bc8d60e4059da148f7d (diff) | |
download | SCons-c14936494d79a00b533e7e8ce9a41e5176c1295f.zip SCons-c14936494d79a00b533e7e8ce9a41e5176c1295f.tar.gz SCons-c14936494d79a00b533e7e8ce9a41e5176c1295f.tar.bz2 |
Use print() function. Fixes py2/3
Diffstat (limited to 'test/SConscript')
-rw-r--r-- | test/SConscript/Return.py | 32 | ||||
-rw-r--r-- | test/SConscript/SConscript.py | 4 |
2 files changed, 18 insertions, 18 deletions
diff --git a/test/SConscript/Return.py b/test/SConscript/Return.py index 997de9d..1f678af 100644 --- a/test/SConscript/Return.py +++ b/test/SConscript/Return.py @@ -39,50 +39,50 @@ x = SConscript('SConscript2') y, z = SConscript('SConscript3') a4, b4 = SConscript('SConscript4') foo, bar = SConscript('SConscript5') -print ("x =", x) -print ("y =", y) -print ("z =", z) -print ("a4 =", a4) -print ("b4 =", b4) -print ("foo =", foo) -print ("bar =", bar) +print("x =", x) +print("y =", y) +print("z =", z) +print("a4 =", a4) +print("b4 =", b4) +print("foo =", foo) +print("bar =", bar) """) test.write('SConscript1', """\ -print ("line 1") +print("line 1") Return() -print ("line 2") +print("line 2") """) test.write('SConscript2', """\ -print ("line 3") +print("line 3") x = 7 Return('x') -print ("line 4") +print("line 4") """) test.write('SConscript3', """\ -print ("line 5") +print("line 5") y = 8 z = 9 Return('y z') -print ("line 6") +print("line 6") """) test.write('SConscript4', """\ a4 = 'aaa' b4 = 'bbb' -print ("line 7") +print("line 7") Return('a4', 'b4', stop=False) b4 = 'b-after' -print ("line 8") +print("line 8") """) test.write('SConscript5', """\ foo = 'foo' bar = 'bar' Return(["foo", "bar"]) -print ("line 9") +print("line 9") """) expect = """\ diff --git a/test/SConscript/SConscript.py b/test/SConscript/SConscript.py index d1e09ce..2eeb211 100644 --- a/test/SConscript/SConscript.py +++ b/test/SConscript/SConscript.py @@ -37,7 +37,7 @@ import foo assert foo.foo == 4 -print ("SConstruct", os.getcwd()) +print("SConstruct", os.getcwd()) SConscript('SConscript') x1 = "SConstruct x1" @@ -89,7 +89,7 @@ test.write('SConscript', """\ assert "os" not in globals() import os -print ("SConscript " + os.getcwd()) +print("SConscript " + os.getcwd()) """) test.write('SConscript1', """ |