Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / Rpcgen / RPCGENSERVICEFLAGS.py
index eee45053797e6181a3be409465147214221a93d3..9b8962f935bb99715ce26a07e8601ef2ff330842 100644 (file)
@@ -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)
 """)