summaryrefslogtreecommitdiffstats
path: root/test/Ghostscript/GSFLAGS.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/Ghostscript/GSFLAGS.py')
-rw-r--r--test/Ghostscript/GSFLAGS.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/Ghostscript/GSFLAGS.py b/test/Ghostscript/GSFLAGS.py
index 057977e..16ad6c1 100644
--- a/test/Ghostscript/GSFLAGS.py
+++ b/test/Ghostscript/GSFLAGS.py
@@ -25,7 +25,6 @@
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import os
-import string
import sys
import TestSCons
@@ -84,12 +83,11 @@ gs = test.where_is(gs_executable)
if gs:
test.write("wrapper.py", """import os
-import string
import sys
-cmd = string.join(sys.argv[1:], " ")
+cmd = " ".join(sys.argv[1:])
open('%s', 'ab').write("%%s\\n" %% cmd)
os.system(cmd)
-""" % string.replace(test.workpath('wrapper.out'), '\\', '\\\\'))
+""" % test.workpath('wrapper.out').replace('\\', '\\\\'))
test.write('SConstruct', """\
import os