Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / Chmod.py
index cf31d0061934753a6a6cdb48f831a2b1939c3a9a..c00aea0fa59cb5bae5a0535122a70fe5922c0b9d 100644 (file)
@@ -45,10 +45,9 @@ Execute(Chmod('d2', 0777))
 Execute(Chmod(Dir('d2-Dir'), 0777))
 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()
 Cat = Action(cat)
 env = Environment()