diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-02-28 04:40:12 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-02-28 04:40:12 (GMT) |
commit | 598439410d709dbfacec13c833e1461f4bec5316 (patch) | |
tree | 9246e040413ac652187586e325190687160179ff | |
parent | 5573ade4379a99cfd4d321fb8501836385ab584d (diff) | |
download | SCons-598439410d709dbfacec13c833e1461f4bec5316.zip SCons-598439410d709dbfacec13c833e1461f4bec5316.tar.gz SCons-598439410d709dbfacec13c833e1461f4bec5316.tar.bz2 |
Fix py2/3 byte file issue
-rw-r--r-- | test/Alias/action.py | 4 |
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) |