summaryrefslogtreecommitdiff
path: root/test/subdivide.py
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-10 22:58:38 -0500
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-10 22:58:38 -0500
commit2c9d9a6282c6a92d04023dec7e926a6de7f7a71c (patch)
tree530317e7b0692c1b234d2252ec866539f4fe6d2f /test/subdivide.py
parent2968cb59b7c8a7a634cca60a3afafd0132bfa683 (diff)
downloadscons-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.py8
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)