diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-02-27 20:40:12 -0800 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-02-27 20:40:12 -0800 |
commit | 2380f54641dad6fec18c8e990054c64c3c05354c (patch) | |
tree | 9246e040413ac652187586e325190687160179ff /test/Alias | |
parent | 7b675f440b64519fa6530073fa5585255f56cd1b (diff) | |
download | scons-2380f54641dad6fec18c8e990054c64c3c05354c.tar.gz |
Fix py2/3 byte file issue
Diffstat (limited to 'test/Alias')
-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 74eb6f96..2a10dbc2 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) |