summaryrefslogtreecommitdiffstats
path: root/test/Builder-factories.py
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2004-07-06 10:56:29 (GMT)
committerSteven Knight <knight@baldmt.com>2004-07-06 10:56:29 (GMT)
commitd3d95ce654a910678d4f4ecdda955d115ffa9518 (patch)
treed517e8ef7984b5ba14a2e89bd5bfc4a7439d73a4 /test/Builder-factories.py
parentc0734f10b95c16bccd20cf7b2086e485995e2044 (diff)
downloadSCons-d3d95ce654a910678d4f4ecdda955d115ffa9518.zip
SCons-d3d95ce654a910678d4f4ecdda955d115ffa9518.tar.gz
SCons-d3d95ce654a910678d4f4ecdda955d115ffa9518.tar.bz2
Win32 portability.
Diffstat (limited to 'test/Builder-factories.py')
-rw-r--r--test/Builder-factories.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Builder-factories.py b/test/Builder-factories.py
index 6007d45..8bdcd3a 100644
--- a/test/Builder-factories.py
+++ b/test/Builder-factories.py
@@ -43,10 +43,10 @@ import os.path
def mkdir(env, source, target):
t = str(target[0])
os.makedirs(t)
- open(os.path.join(t, 'marker'), 'w').write("MakeDirectory\\n")
+ open(os.path.join(t, 'marker'), 'wb').write("MakeDirectory\\n")
MakeDirectory = Builder(action=mkdir, target_factory=Dir)
def collect(env, source, target):
- out = open(str(target[0]), 'w')
+ out = open(str(target[0]), 'wb')
dir = str(source[0])
for f in os.listdir(dir):
f = os.path.join(dir, f)