summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-12 23:53:42 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-12 23:53:42 (GMT)
commit4ebf54bf58ea17b50cae986c501bfa04338cba84 (patch)
treeeab2fec4396c5abd64294bf4923329a46dec6040 /test
parent2a815ecf9af4b2e05bbbd059f627cfa9e43a207d (diff)
downloadSCons-4ebf54bf58ea17b50cae986c501bfa04338cba84.zip
SCons-4ebf54bf58ea17b50cae986c501bfa04338cba84.tar.gz
SCons-4ebf54bf58ea17b50cae986c501bfa04338cba84.tar.bz2
get rid of rb/wb
Diffstat (limited to 'test')
-rw-r--r--test/HeaderGen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/HeaderGen.py b/test/HeaderGen.py
index 5a7fdbe..2763b34 100644
--- a/test/HeaderGen.py
+++ b/test/HeaderGen.py
@@ -35,7 +35,7 @@ test = TestSCons.TestSCons()
test.write('SConstruct', """\
def writeFile(target, contents):
- file = open(str(target[0]), 'wb')
+ file = open(str(target[0]), 'w')
file.write(contents)
file.close()
return 0
@@ -60,8 +60,8 @@ test.write('SConstruct', """\
env = Environment()
def gen_a_h(target, source, env):
- t = open(str(target[0]), 'wb')
- s = open(str(source[0]), 'rb')
+ t = open(str(target[0]), 'w')
+ s = open(str(source[0]), 'r')
s.readline()
t.write(s.readline()[:-1] + ';\\n')