Skip to content
Snippets Groups Projects
Commit cf339296 authored by Robert Read's avatar Robert Read
Browse files

python 1.5 doesn't have isspace() (I know, how barbaric), but this should

do just as well.
parent e5d65cea
No related branches found
No related tags found
No related merge requests found
......@@ -1047,11 +1047,11 @@ def cmdlinesplit(cmdline):
if arg is None: arg = match.group(1)
else: arg = arg + match.group(1)
elif c.isspace():
elif c in string.whitespace:
if arg != None:
arg_list.append(str(arg))
arg = None
while i < len(cmdline) and cmdline[i].isspace():
while i < len(cmdline) and cmdline[i] in string.whitespace:
i = i + 1
else:
match = outside.match(cmdline, i)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment