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 | d8fc11cab43bdcd01f88573bb3579e506a506ad3 (patch) | |
tree | 530317e7b0692c1b234d2252ec866539f4fe6d2f | |
parent | edf7932e0693400c806e97b47f8cf4347d33a6bb (diff) | |
download | scons-d8fc11cab43bdcd01f88573bb3579e506a506ad3.tar.gz |
remove rb/wb from file opens, not needed py2/3
-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 44402c90..770870dd 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) |