diff options
author | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:44:15 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2017-03-11 04:44:15 (GMT) |
commit | a9c931733f6d310279f541706ca3ce6306b23f29 (patch) | |
tree | 901a8a3635591c33f235dcc5eeb88f9dc646ee9b | |
parent | 85f03de79b672d577294ad6c567033f7bbeb6d1d (diff) | |
download | SCons-a9c931733f6d310279f541706ca3ce6306b23f29.zip SCons-a9c931733f6d310279f541706ca3ce6306b23f29.tar.gz SCons-a9c931733f6d310279f541706ca3ce6306b23f29.tar.bz2 |
remove rb/wb from file opens, not needed py2/3.
-rw-r--r-- | test/Rpcgen/RPCGENFLAGS.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Rpcgen/RPCGENFLAGS.py b/test/Rpcgen/RPCGENFLAGS.py index 4af5da8..b94ffe5 100644 --- a/test/Rpcgen/RPCGENFLAGS.py +++ b/test/Rpcgen/RPCGENFLAGS.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) |