diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-10 22:58:38 -0500 |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-10 22:58:38 -0500 |
commit | 2c9d9a6282c6a92d04023dec7e926a6de7f7a71c (patch) | |
tree | 530317e7b0692c1b234d2252ec866539f4fe6d2f /test/subdivide.py | |
parent | 2968cb59b7c8a7a634cca60a3afafd0132bfa683 (diff) | |
download | scons-git-2c9d9a6282c6a92d04023dec7e926a6de7f7a71c.tar.gz |
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/subdivide.py')
-rw-r--r-- | test/subdivide.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/subdivide.py b/test/subdivide.py index 44402c90d..770870dd5 100644 --- a/test/subdivide.py +++ b/test/subdivide.py @@ -61,19 +61,19 @@ fake_link_py = test.workpath('fake_link.py') test.write(fake_cc_py, """\ #!/usr/bin/env python import sys -ofp = open(sys.argv[1], 'wb') +ofp = open(sys.argv[1], 'w') ofp.write('fake_cc.py: %s\\n' % sys.argv) for s in sys.argv[2:]: - ofp.write(open(s, 'rb').read()) + ofp.write(open(s, 'r').read()) """) test.write(fake_link_py, """\ #!/usr/bin/env python import sys -ofp = open(sys.argv[1], 'wb') +ofp = open(sys.argv[1], 'w') ofp.write('fake_link.py: %s\\n' % sys.argv) for s in sys.argv[2:]: - ofp.write(open(s, 'rb').read()) + ofp.write(open(s, 'r').read()) """) test.chmod(fake_cc_py, 0o755) |