diff options
author | Russel Winder <russel@winder.org.uk> | 2016-01-01 15:23:41 (GMT) |
---|---|---|
committer | Russel Winder <russel@winder.org.uk> | 2016-01-01 15:23:41 (GMT) |
commit | 7b68ccb54e7b4d2200f8ac813eb6f8b2ae3654eb (patch) | |
tree | 5331118c851cdbc48ce2f983141ccd7c170e88f9 /test/Actions/actions.py | |
parent | e9989979ac3411919935afe3a8c8c70ebbc4fd58 (diff) | |
download | SCons-7b68ccb54e7b4d2200f8ac813eb6f8b2ae3654eb.zip SCons-7b68ccb54e7b4d2200f8ac813eb6f8b2ae3654eb.tar.gz SCons-7b68ccb54e7b4d2200f8ac813eb6f8b2ae3654eb.tar.bz2 |
Some more print statements to functions.
Diffstat (limited to 'test/Actions/actions.py')
-rw-r--r-- | test/Actions/actions.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Actions/actions.py b/test/Actions/actions.py index 03d67a0..785a0cb 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 = """\ |