summaryrefslogtreecommitdiff
path: root/test/Actions
diff options
context:
space:
mode:
authorRussel Winder <russel@winder.org.uk>2016-01-01 15:23:41 +0000
committerRussel Winder <russel@winder.org.uk>2016-01-01 15:23:41 +0000
commiteaf9ba8362c74ce7589b5d2bfc6049d92d0c8d61 (patch)
tree5331118c851cdbc48ce2f983141ccd7c170e88f9 /test/Actions
parent533ab8598e0f32928589a5f8061dbe191a095b46 (diff)
downloadscons-eaf9ba8362c74ce7589b5d2bfc6049d92d0c8d61.tar.gz
Some more print statements to functions.
Diffstat (limited to 'test/Actions')
-rw-r--r--test/Actions/actions.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Actions/actions.py b/test/Actions/actions.py
index 03d67a06..785a0cb1 100644
--- a/test/Actions/actions.py
+++ b/test/Actions/actions.py
@@ -70,7 +70,7 @@ import os
def func(env, target, source):
cmd = r'%(_python_)s build.py %%s 3 %%s' %% (' '.join(map(str, target)),
' '.join(map(str, source)))
- print cmd
+ print(cmd)
return os.system(cmd)
B = Builder(action = func)
env = Environment(BUILDERS = { 'B' : B })
@@ -91,7 +91,7 @@ class bld(object):
self.cmd = r'%(_python_)s build.py %%s 4 %%s'
def __call__(self, env, target, source):
cmd = self.get_contents(env, target, source)
- print cmd
+ print(cmd)
return os.system(cmd)
def get_contents(self, env, target, source):
return self.cmd %% (' '.join(map(str, target)),
@@ -114,9 +114,9 @@ def func(env, target, source):
env = Environment(S = Action('foo'),
F = Action(func),
L = Action(['arg1', 'arg2']))
-print env.subst('$S')
-print env.subst('$F')
-print env.subst('$L')
+print(env.subst('$S'))
+print(env.subst('$F'))
+print(env.subst('$L'))
""")
test.run(arguments = '-Q .', stdout = """\