summaryrefslogtreecommitdiffstats
path: root/test/CacheDir/option--cs.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CacheDir/option--cs.py')
-rw-r--r--test/CacheDir/option--cs.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CacheDir/option--cs.py b/test/CacheDir/option--cs.py
index df1a87f..b6bb52a 100644
--- a/test/CacheDir/option--cs.py
+++ b/test/CacheDir/option--cs.py
@@ -57,10 +57,9 @@ test.write(['src1', 'SConstruct'], """
def cat(env, source, target):
target = str(target[0])
open('cat.out', 'ab').write(target + "\\n")
- 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()
env = Environment(BUILDERS={'Internal':Builder(action=cat),
'External':Builder(action='%(_python_)s build.py $TARGET $SOURCES')})