From d8fc11cab43bdcd01f88573bb3579e506a506ad3 Mon Sep 17 00:00:00 2001 From: William Deegan Date: Fri, 10 Mar 2017 22:58:38 -0500 Subject: remove rb/wb from file opens, not needed py2/3 --- test/subdivide.py | 8 ++++---- 1 file 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) -- cgit v1.2.1