Move 2.0 changes collected in branches/pending back to trunk for further
[scons.git] / test / ESCAPE.py
index 68835f1a4bf774fff02a243385113e1fc10c0f4f..0651b92d67172d57b9745246fb646fd550c76c52 100644 (file)
@@ -43,13 +43,12 @@ ofp.close()
 """)
 
 test.write('SConstruct', """\
-import string
 # We still need to run this through the original ESCAPE function,
 # because that's set up to work in tandem with the existing SHELL,
 # which we're not replacing.
 orig_escape = Environment()['ESCAPE']
 def my_escape(s):
-    s = string.replace(s, 'file.in', 'file.xxx')
+    s = s.replace('file.in', 'file.xxx')
     return orig_escape(s)
 env = Environment(ESCAPE = my_escape)
 env.Command('file.out', 'file.in', '%(_python_)s cat.py $TARGET $SOURCES')