summaryrefslogtreecommitdiffstats
path: root/test/Rpcgen/RPCGENFLAGS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Rpcgen/RPCGENFLAGS.py')
-rw-r--r--test/Rpcgen/RPCGENFLAGS.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Rpcgen/RPCGENFLAGS.py b/test/Rpcgen/RPCGENFLAGS.py
index ddbc745..4af5da8 100644
--- a/test/Rpcgen/RPCGENFLAGS.py
+++ b/test/Rpcgen/RPCGENFLAGS.py
@@ -35,15 +35,14 @@ test = TestSCons.TestSCons()
test.write('myrpcgen.py', """
import getopt
-import string
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')
-output.write(string.join(sys.argv) + "\\n")
+output.write(" ".join(sys.argv) + "\\n")
for a in args:
contents = open(a, 'rb').read()
- output.write(string.replace(contents, 'RPCGEN', 'myrpcgen.py'))
+ output.write(contents.replace('RPCGEN', 'myrpcgen.py'))
output.close()
sys.exit(0)
""")