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)
commit325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325 (patch)
treed517e8ef7984b5ba14a2e89bd5bfc4a7439d73a4 /test/Builder-factories.py
parent8b1b33bcc5a184bb5c70229d9515b9d570eeacd1 (diff)
downloadSCons-325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325.zip
SCons-325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325.tar.gz
SCons-325ecc35c1eaa8e9bdb8b1c0c9d3679840fbc325.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)