summaryrefslogtreecommitdiffstats
path: root/test/Rpcgen
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:44:50 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2017-03-11 04:44:50 (GMT)
commita8fd7512f750ee9023750217787566d25038925e (patch)
tree11a1f36877124c6fa0dcca41cddf6a84ed219bd1 /test/Rpcgen
parenta9c931733f6d310279f541706ca3ce6306b23f29 (diff)
downloadSCons-a8fd7512f750ee9023750217787566d25038925e.zip
SCons-a8fd7512f750ee9023750217787566d25038925e.tar.gz
SCons-a8fd7512f750ee9023750217787566d25038925e.tar.bz2
remove rb/wb from file opens, not needed py2/3.
Diffstat (limited to 'test/Rpcgen')
-rw-r--r--test/Rpcgen/RPCGENHEADERFLAGS.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Rpcgen/RPCGENHEADERFLAGS.py b/test/Rpcgen/RPCGENHEADERFLAGS.py
index 0c93fe7..f65da8e 100644
--- a/test/Rpcgen/RPCGENHEADERFLAGS.py
+++ b/test/Rpcgen/RPCGENHEADERFLAGS.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)