diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:05:09 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:05:09 (GMT) |
commit | 0850cf4f87576efcd31570fd5dcd0cc2b2a23e63 (patch) | |
tree | 6c46d6355813100ae5908ebf60d444919befeead /test/CXX | |
parent | c3c542af56fd2fe3d5eb3351561ef64a94cafb8c (diff) | |
download | SCons-0850cf4f87576efcd31570fd5dcd0cc2b2a23e63.zip SCons-0850cf4f87576efcd31570fd5dcd0cc2b2a23e63.tar.gz SCons-0850cf4f87576efcd31570fd5dcd0cc2b2a23e63.tar.bz2 |
remove rb/wb from file opens, not needed py2/3
Diffstat (limited to 'test/CXX')
-rw-r--r-- | test/CXX/CXX.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/CXX/CXX.py b/test/CXX/CXX.py index c9dbf1c..1a07b09 100644 --- a/test/CXX/CXX.py +++ b/test/CXX/CXX.py @@ -50,8 +50,8 @@ while args: break args = args[1:] if a[:5].lower() == '/out:': out = a[5:] -infile = open(args[0], 'rb') -outfile = open(out, 'wb') +infile = open(args[0], 'r') +outfile = open(out, 'w') for l in infile.readlines(): if l[:8] != '/*link*/': outfile.write(l) @@ -74,8 +74,8 @@ while args: inf = a continue if a[:3] == '/Fo': out = a[3:] -infile = open(inf, 'rb') -outfile = open(out, 'wb') +infile = open(inf, 'r') +outfile = open(out, 'w') for l in infile.readlines(): if l[:7] != '/*c++*/': outfile.write(l) @@ -90,8 +90,8 @@ import sys opts, args = getopt.getopt(sys.argv[1:], 'o:') for opt, arg in opts: if opt == '-o': out = arg -infile = open(args[0], 'rb') -outfile = open(out, 'wb') +infile = open(args[0], 'r') +outfile = open(out, 'w') for l in infile.readlines(): if l[:8] != '/*link*/': outfile.write(l) @@ -104,8 +104,8 @@ import sys opts, args = getopt.getopt(sys.argv[1:], 'co:') for opt, arg in opts: if opt == '-o': out = arg -infile = open(args[0], 'rb') -outfile = open(out, 'wb') +infile = open(args[0], 'r') +outfile = open(out, 'w') for l in infile.readlines(): if l[:7] != '/*c++*/': outfile.write(l) |