diff options
Diffstat (limited to 'test/SHELL.py')
-rw-r--r-- | test/SHELL.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/SHELL.py b/test/SHELL.py index fa1ae78..93ed0b1 100644 --- a/test/SHELL.py +++ b/test/SHELL.py @@ -48,7 +48,6 @@ my_shell = test.workpath('my_shell.py') test.write(my_shell, """\ #!%(python)s import os -import string import sys cmd = sys.argv[2] def stripquote(s): @@ -56,8 +55,8 @@ def stripquote(s): s[0] == "'" and s[-1] == "'": s = s[1:-1] return s -args = string.split(stripquote(sys.argv[2])) -args = map(stripquote, args) +args = stripquote(sys.argv[2]).split() +args = list(map(stripquote, args)) ofp = open(args[2], 'wb') for f in args[3:] + ['extra.txt']: ofp.write(open(f, 'rb').read()) |