diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-12 18:46:25 -0400 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-12 18:46:25 -0400 |
commit | 2a784f5f90aaa6fa0677f03dd80cb26fbd050f18 (patch) | |
tree | 377697be1cddf7f37d10ceb5be19120720fc1e7f /test/Command.py | |
parent | 62e1f1d4e484d446ee247044eef3104b268930d5 (diff) | |
download | scons-2a784f5f90aaa6fa0677f03dd80cb26fbd050f18.tar.gz |
fix rb/wb py2/3
Diffstat (limited to 'test/Command.py')
-rw-r--r-- | test/Command.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/Command.py b/test/Command.py index 5f72c94b..49b9117d 100644 --- a/test/Command.py +++ b/test/Command.py @@ -35,8 +35,8 @@ test.subdir('sub') test.write('build.py', r""" import sys -contents = open(sys.argv[2], 'rb').read() -file = open(sys.argv[1], 'wb') +contents = open(sys.argv[2], 'r').read() +file = open(sys.argv[1], 'w') file.write(contents) file.close() """) @@ -45,8 +45,8 @@ test.write('SConstruct', """ import os def buildIt(env, target, source): - contents = open(str(source[0]), 'rb').read() - file = open(str(target[0]), 'wb') + contents = open(str(source[0]), 'r').read() + file = open(str(target[0]), 'w') xyzzy = env.get('XYZZY', '') if xyzzy: file.write(xyzzy + '\\n') @@ -57,9 +57,9 @@ def buildIt(env, target, source): def sub(env, target, source): target = str(target[0]) source = str(source[0]) - t = open(target, 'wb') + t = open(target, 'w') for f in sorted(os.listdir(source)): - t.write(open(os.path.join(source, f), 'rb').read()) + t.write(open(os.path.join(source, f), 'r').read()) t.close() return 0 |