summaryrefslogtreecommitdiffstats
path: root/test/MSVC
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-13 01:31:38 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-13 01:31:38 (GMT)
commit947fa5299ab999820bfe4486c0a03d10dbdf80d6 (patch)
tree0bc22d58eed8d5106e9c58d70370c34208509906 /test/MSVC
parenteac948ded21626e43fccf9e816b2cf7db3af17c7 (diff)
downloadSCons-947fa5299ab999820bfe4486c0a03d10dbdf80d6.zip
SCons-947fa5299ab999820bfe4486c0a03d10dbdf80d6.tar.gz
SCons-947fa5299ab999820bfe4486c0a03d10dbdf80d6.tar.bz2
remove mode b's py2/3
Diffstat (limited to 'test/MSVC')
-rw-r--r--test/MSVC/batch.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/MSVC/batch.py b/test/MSVC/batch.py
index 8648292..97d7f3a 100644
--- a/test/MSVC/batch.py
+++ b/test/MSVC/batch.py
@@ -55,20 +55,20 @@ else:
# Delay writing the .log output until here so any trailing slash or
# backslash has been stripped, and the output comparisons later in this
# script don't have to account for the difference.
-open('fake_cl.log', 'ab').write(" ".join(sys.argv[1:]) + '\\n')
+open('fake_cl.log', 'a').write(" ".join(sys.argv[1:]) + '\\n')
for infile in input_files:
if dir:
outfile = os.path.join(dir, infile.replace('.c', '.obj'))
else:
outfile = output
- open(outfile, 'wb').write(open(infile, 'rb').read())
+ open(outfile, 'w').write(open(infile, 'r').read())
""")
test.write('fake_link.py', """\
import sys
-ofp = open(sys.argv[1], 'wb')
+ofp = open(sys.argv[1], 'w')
for infile in sys.argv[2:]:
- ofp.write(open(infile, 'rb').read())
+ ofp.write(open(infile, 'r').read())
""")
test.write('SConstruct', """