summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-02-26 20:48:39 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-02-26 20:48:39 (GMT)
commitf51b065a8e4c009d58038d96b27eb0a6f7fb4189 (patch)
tree5f631262de5077b73ffb95ee7b433c32264845a1
parent399b2673152321c3f719d27334e036c03a579997 (diff)
downloadSCons-f51b065a8e4c009d58038d96b27eb0a6f7fb4189.zip
SCons-f51b065a8e4c009d58038d96b27eb0a6f7fb4189.tar.gz
SCons-f51b065a8e4c009d58038d96b27eb0a6f7fb4189.tar.bz2
Must use bytes when writing to os.open()'d file on py3, bytearray works on both py3 and py2
-rw-r--r--src/engine/SCons/Platform/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/SCons/Platform/__init__.py b/src/engine/SCons/Platform/__init__.py
index ebdbb4c..1654d0a 100644
--- a/src/engine/SCons/Platform/__init__.py
+++ b/src/engine/SCons/Platform/__init__.py
@@ -217,7 +217,7 @@ class TempFileMunge(object):
prefix = '@'
args = list(map(SCons.Subst.quote_spaces, cmd[1:]))
- os.write(fd, " ".join(args) + "\n")
+ os.write(fd, bytearray(" ".join(args) + "\n",'utf-8'))
os.close(fd)
# XXX Using the SCons.Action.print_actions value directly
# like this is bogus, but expedient. This class should