summaryrefslogtreecommitdiffstats
path: root/test/YACC/live.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/YACC/live.py')
-rw-r--r--test/YACC/live.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/YACC/live.py b/test/YACC/live.py
index 4922c6a..28e2186 100644
--- a/test/YACC/live.py
+++ b/test/YACC/live.py
@@ -28,8 +28,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
Test YACC and YACCFLAGS with a live yacc compiler.
"""
-import string
-
import TestSCons
_exe = TestSCons._exe
@@ -44,11 +42,10 @@ if not yacc:
test.write("wrapper.py",
"""import os
-import string
import sys
open('%s', 'wb').write("wrapper.py\\n")
-os.system(string.join(sys.argv[1:], " "))
-""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\'))
+os.system(" ".join(sys.argv[1:]))
+""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
test.write('SConstruct', """
foo = Environment(YACCFLAGS='-d')