From 80aba339e2acac074840aedd0ceb8553ed77d127 Mon Sep 17 00:00:00 2001 From: Craig Rodrigues Date: Sat, 11 Mar 2017 04:21:48 -0800 Subject: Remove 'b' from open, not needed py2/3 --- test/option--.py | 2 +- test/option--Q.py | 2 +- test/option-i.py | 2 +- test/option-j.py | 2 +- test/option-k.py | 2 +- test/option-n.py | 2 +- test/option-s.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/option--.py b/test/option--.py index 3c932c0..8e06260 100644 --- a/test/option--.py +++ b/test/option--.py @@ -34,7 +34,7 @@ test = TestSCons.TestSCons() test.write('build.py', r""" import sys -file = open(sys.argv[1], 'wb') +file = open(sys.argv[1], 'w') file.write("build.py: %s\n" % sys.argv[1]) file.close() """) diff --git a/test/option--Q.py b/test/option--Q.py index 4322bcd..da6d2e1 100644 --- a/test/option--Q.py +++ b/test/option--Q.py @@ -34,7 +34,7 @@ test = TestSCons.TestSCons() test.write('build.py', r""" import sys -file = open(sys.argv[1], 'wb') +file = open(sys.argv[1], 'w') file.write("build.py: %s\n" % sys.argv[1]) file.close() """) diff --git a/test/option-i.py b/test/option-i.py index b32bd9c..3301bf5 100644 --- a/test/option-i.py +++ b/test/option-i.py @@ -34,7 +34,7 @@ test = TestSCons.TestSCons() test.write('succeed.py', r""" import sys -file = open(sys.argv[1], 'wb') +file = open(sys.argv[1], 'w') file.write("succeed.py: %s\n" % sys.argv[1]) file.close() sys.exit(0) diff --git a/test/option-j.py b/test/option-j.py index 69ef414..acd97f8 100644 --- a/test/option-j.py +++ b/test/option-j.py @@ -51,7 +51,7 @@ test = TestSCons.TestSCons() test.write('build.py', r""" import time import sys -file = open(sys.argv[1], 'wb') +file = open(sys.argv[1], 'w') file.write(str(time.time()) + '\n') time.sleep(1) file.write(str(time.time())) diff --git a/test/option-k.py b/test/option-k.py index a367c65..5cd9be9 100644 --- a/test/option-k.py +++ b/test/option-k.py @@ -38,7 +38,7 @@ test.subdir('work1', 'work2', 'work3') test.write('succeed.py', r""" import sys -file = open(sys.argv[1], 'wb') +file = open(sys.argv[1], 'w') file.write("succeed.py: %s\n" % sys.argv[1]) file.close() sys.exit(0) diff --git a/test/option-n.py b/test/option-n.py index a32dfb7..0fd7bfe 100644 --- a/test/option-n.py +++ b/test/option-n.py @@ -52,7 +52,7 @@ test.subdir('build', 'src') test.write('build.py', r""" import sys -file = open(sys.argv[1], 'wb') +file = open(sys.argv[1], 'w') file.write("build.py: %s\n" % sys.argv[1]) file.close() """) diff --git a/test/option-s.py b/test/option-s.py index f79c347..bbde2d1 100644 --- a/test/option-s.py +++ b/test/option-s.py @@ -34,7 +34,7 @@ test = TestSCons.TestSCons() test.write('build.py', r""" import sys -file = open(sys.argv[1], 'wb') +file = open(sys.argv[1], 'w') file.write("build.py: %s\n" % sys.argv[1]) file.close() """) -- cgit v0.12