summaryrefslogtreecommitdiffstats
path: root/test/CacheDir/environment.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CacheDir/environment.py')
-rw-r--r--test/CacheDir/environment.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CacheDir/environment.py b/test/CacheDir/environment.py
index 297d46d..4fb9b51 100644
--- a/test/CacheDir/environment.py
+++ b/test/CacheDir/environment.py
@@ -54,10 +54,9 @@ test.write(['src', 'SConscript'], """\
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_cache = Environment(BUILDERS={'Cat':Builder(action=cat)})
env_nocache = env_cache.Clone()