summaryrefslogtreecommitdiffstats
path: root/test/CXX/CXXFILESUFFIX.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/CXX/CXXFILESUFFIX.py')
-rw-r--r--test/CXX/CXXFILESUFFIX.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/CXX/CXXFILESUFFIX.py b/test/CXX/CXXFILESUFFIX.py
index 749ca69..8439aef 100644
--- a/test/CXX/CXXFILESUFFIX.py
+++ b/test/CXX/CXXFILESUFFIX.py
@@ -34,12 +34,11 @@ test = TestSCons.TestSCons()
test.write('mylex.py', """
import getopt
-import string
import sys
cmd_opts, args = getopt.getopt(sys.argv[1:], 't', [])
for a in args:
contents = open(a, 'rb').read()
- sys.stdout.write(string.replace(contents, 'LEX', 'mylex.py'))
+ sys.stdout.write(contents.replace('LEX', 'mylex.py'))
sys.exit(0)
""")