diff options
author | Russel Winder <russel@winder.org.uk> | 2016-01-01 15:59:23 +0000 |
---|---|---|
committer | Russel Winder <russel@winder.org.uk> | 2016-01-01 15:59:23 +0000 |
commit | f075b096be96479dbb162b71273b9012c88902f1 (patch) | |
tree | 4b30c7fe89b85380b9c825c906e2745c4d7c96d1 /test/Flatten.py | |
parent | eaf9ba8362c74ce7589b5d2bfc6049d92d0c8d61 (diff) | |
download | scons-f075b096be96479dbb162b71273b9012c88902f1.tar.gz |
Some more statement to function transforms.
Diffstat (limited to 'test/Flatten.py')
-rw-r--r-- | test/Flatten.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/Flatten.py b/test/Flatten.py index b41c4fef..fd9943de 100644 --- a/test/Flatten.py +++ b/test/Flatten.py @@ -44,15 +44,15 @@ def cat(env, source, target): env = Environment(BUILDERS={'Cat':Builder(action=cat)}) f1 = env.Cat('../file1.out', 'file1.in') f2 = env.Cat('../file2.out', ['file2a.in', 'file2b.in']) -print list(map(str, Flatten(['begin', f1, 'middle', f2, 'end']))) -print list(map(str, env.Flatten([f1, [['a', 'b'], 'c'], f2]))) +print(list(map(str, Flatten(['begin', f1, 'middle', f2, 'end'])))) +print(list(map(str, env.Flatten([f1, [['a', 'b'], 'c'], f2])))) SConscript('SConscript', "env") """) test.write(['work', 'SConscript'], """ Import("env") -print Flatten([1, [2, 3], 4]) -print env.Flatten([[[[1], 2], 3], 4]) +print(Flatten([1, [2, 3], 4])) +print(env.Flatten([[[[1], 2], 3], 4])) """) test.write('file1.in', "file1.in\n") |