diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-13 03:33:00 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-13 03:33:00 (GMT) |
commit | 57f2bc39219ec1fdb609bb979294487512407963 (patch) | |
tree | 6b6a57d75f4be82a5864af9fe11af51bd0769b7e /test/Scanner/no-Dir-node.py | |
parent | 25335d29099874e0574a79d9a8644d66f1533838 (diff) | |
download | SCons-57f2bc39219ec1fdb609bb979294487512407963.zip SCons-57f2bc39219ec1fdb609bb979294487512407963.tar.gz SCons-57f2bc39219ec1fdb609bb979294487512407963.tar.bz2 |
py2/3 byte fixes
Diffstat (limited to 'test/Scanner/no-Dir-node.py')
-rw-r--r-- | test/Scanner/no-Dir-node.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/Scanner/no-Dir-node.py b/test/Scanner/no-Dir-node.py index 3a918bf..123764e 100644 --- a/test/Scanner/no-Dir-node.py +++ b/test/Scanner/no-Dir-node.py @@ -54,16 +54,16 @@ test.write('build.py', r""" import os.path import sys path = sys.argv[1].split() -input = open(sys.argv[2], 'rb') -output = open(sys.argv[3], 'wb') +input = open(sys.argv[2], 'r') +output = open(sys.argv[3], 'w') def find_file(f): if os.path.isabs(f): - return open(f, 'rb') + return open(f, 'r') for dir in path: p = dir + os.sep + f if os.path.exists(p): - return open(p, 'rb') + return open(p, 'r') return None def process(infp, outfp): @@ -81,7 +81,7 @@ sys.exit(0) test.write('SConstruct', """\ def foo(target, source, env): - fp = open(str(target[0]), 'wb') + fp = open(str(target[0]), 'w') for c in sorted(source[0].children(), key=lambda t: t.name): fp.write('%s\\n' % c) fp.close() |