Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / CacheDir / VariantDir.py
index 8ba3e781da3cd444ddd6a9ab58caa788c2e9a8c0..b665fe38ba03db87df927df9c273f218660e3f1a 100644 (file)
@@ -43,10 +43,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 = Environment(BUILDERS={'Cat':Builder(action=cat)})
 env.Cat('aaa.out', 'aaa.in')