diff options
Diffstat (limited to 'test/CXX/CXX.py')
-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) |