summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-02-28 04:40:12 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-02-28 04:40:12 (GMT)
commit598439410d709dbfacec13c833e1461f4bec5316 (patch)
tree9246e040413ac652187586e325190687160179ff
parent5573ade4379a99cfd4d321fb8501836385ab584d (diff)
downloadSCons-598439410d709dbfacec13c833e1461f4bec5316.zip
SCons-598439410d709dbfacec13c833e1461f4bec5316.tar.gz
SCons-598439410d709dbfacec13c833e1461f4bec5316.tar.bz2
Fix py2/3 byte file issue
-rw-r--r--test/Alias/action.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Alias/action.py b/test/Alias/action.py
index 74eb6f9..2a10dbc 100644
--- a/test/Alias/action.py
+++ b/test/Alias/action.py
@@ -43,12 +43,12 @@ def cat(target, source, env):
def foo(target, source, env):
target = list(map(str, target))
source = list(map(str, source))
- open('foo', 'wb').write("foo(%s, %s)\\n" % (target, source))
+ open('foo', 'wb').write(bytearray("foo(%s, %s)\\n" % (target, source),'utf-8'))
def bar(target, source, env):
target = list(map(str, target))
source = list(map(str, source))
- open('bar', 'wb').write("bar(%s, %s)\\n" % (target, source))
+ open('bar', 'wb').write(bytearray("bar(%s, %s)\\n" % (target, source),'utf-8'))
env = Environment(BUILDERS = {'Cat':Builder(action=cat)})
env.Alias(target = ['build-f1'], source = 'f1.out', action = foo)