summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Noel <GregNoel@tigris.org>2009-05-13 20:12:13 (GMT)
committerGreg Noel <GregNoel@tigris.org>2009-05-13 20:12:13 (GMT)
commitd22a7fa3729cb3b97554eba01dd176b297ac1a99 (patch)
tree95a082319be85118e16eb158e6bb64e33723c388
parentc08dd436e551f071aac758a0737e45e3b5c8c296 (diff)
downloadSCons-d22a7fa3729cb3b97554eba01dd176b297ac1a99.zip
SCons-d22a7fa3729cb3b97554eba01dd176b297ac1a99.tar.gz
SCons-d22a7fa3729cb3b97554eba01dd176b297ac1a99.tar.bz2
Apply fix to Textfile/Substfile suggested by Gary Oberbrunner
-rw-r--r--src/engine/SCons/Tool/textfile.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Tool/textfile.py b/src/engine/SCons/Tool/textfile.py
index 976611b..67b61f4 100644
--- a/src/engine/SCons/Tool/textfile.py
+++ b/src/engine/SCons/Tool/textfile.py
@@ -106,7 +106,7 @@ def _action(target, source, env):
# write the file
try:
- fd = open(target[0].get_path(), "w")
+ fd = open(target[0].get_path(), "wb")
except (OSError,IOError), e:
raise SCons.Errors.UserError("Can't write target file %s" % target[0])
# separate lines by 'linesep' only if linesep is not empty