summaryrefslogtreecommitdiffstats
path: root/test/no-target.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/no-target.py')
-rw-r--r--test/no-target.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/no-target.py b/test/no-target.py
index 6c91013..be2cd51 100644
--- a/test/no-target.py
+++ b/test/no-target.py
@@ -42,10 +42,9 @@ SConscript(r'%s')
test.write(subdir_SConscript, r"""
def cat(env, source, target):
target = str(target[0])
- source = map(str, source)
f = open(target, "wb")
for src in source:
- f.write(open(src, "rb").read())
+ f.write(open(str(src), "rb").read())
f.close()
b = Builder(action=cat, suffix='.out', src_suffix='.in')