diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:45:49 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:45:49 (GMT) |
commit | 5422f3bcc3e369272f06a8cfb8a9b29f048da790 (patch) | |
tree | 3a21ebd23489bd494ddc4a71fd08d180507b6cfb | |
parent | a8fd7512f750ee9023750217787566d25038925e (diff) | |
download | SCons-5422f3bcc3e369272f06a8cfb8a9b29f048da790.zip SCons-5422f3bcc3e369272f06a8cfb8a9b29f048da790.tar.gz SCons-5422f3bcc3e369272f06a8cfb8a9b29f048da790.tar.bz2 |
remove rb/wb from file opens, not needed py2/3.
-rw-r--r-- | test/Rpcgen/RPCGENSERVICEFLAGS.py | 4 | ||||
-rw-r--r-- | test/Rpcgen/RPCGENXDRFLAGS.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/test/Rpcgen/RPCGENSERVICEFLAGS.py b/test/Rpcgen/RPCGENSERVICEFLAGS.py index 9b8962f..a956d4f 100644 --- a/test/Rpcgen/RPCGENSERVICEFLAGS.py +++ b/test/Rpcgen/RPCGENSERVICEFLAGS.py @@ -38,10 +38,10 @@ import getopt import sys cmd_opts, args = getopt.getopt(sys.argv[1:], 'chlmo:x', []) for opt, arg in cmd_opts: - if opt == '-o': output = open(arg, 'wb') + if opt == '-o': output = open(arg, 'w') output.write(" ".join(sys.argv) + "\\n") for a in args: - contents = open(a, 'rb').read() + contents = open(a, 'r').read() output.write(contents.replace('RPCGEN', 'myrpcgen.py')) output.close() sys.exit(0) diff --git a/test/Rpcgen/RPCGENXDRFLAGS.py b/test/Rpcgen/RPCGENXDRFLAGS.py index 8f90d5a..0dc1366 100644 --- a/test/Rpcgen/RPCGENXDRFLAGS.py +++ b/test/Rpcgen/RPCGENXDRFLAGS.py @@ -38,10 +38,10 @@ import getopt import sys cmd_opts, args = getopt.getopt(sys.argv[1:], 'chlmo:x', []) for opt, arg in cmd_opts: - if opt == '-o': output = open(arg, 'wb') + if opt == '-o': output = open(arg, 'w') output.write(" ".join(sys.argv) + "\\n") for a in args: - contents = open(a, 'rb').read() + contents = open(a, 'r').read() output.write(contents.replace('RPCGEN', 'myrpcgen.py')) output.close() sys.exit(0) |