summaryrefslogtreecommitdiffstats
path: root/test/LEX/LEX.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/LEX/LEX.py')
-rw-r--r--test/LEX/LEX.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/LEX/LEX.py b/test/LEX/LEX.py
index 0ead71a..975d4e9 100644
--- a/test/LEX/LEX.py
+++ b/test/LEX/LEX.py
@@ -37,12 +37,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)
""")