Commit be5b8dfd authored by Guido van Rossum's avatar Guido van Rossum

Fix bug: doubled semicolons were not undoubled in splitParts().

parent 161aa5a2
...@@ -151,7 +151,7 @@ def splitParts(arg): ...@@ -151,7 +151,7 @@ def splitParts(arg):
import string import string
arg = string.replace(arg, ";;", "\0") arg = string.replace(arg, ";;", "\0")
parts = string.split(arg, ';') parts = string.split(arg, ';')
parts = map(lambda s, repl=string.replace: repl(s, "\0", ";;"), parts) parts = map(lambda s, repl=string.replace: repl(s, "\0", ";"), parts)
if len(parts) > 1 and not string.strip(parts[-1]): if len(parts) > 1 and not string.strip(parts[-1]):
del parts[-1] # It ended in a semicolon del parts[-1] # It ended in a semicolon
return parts return parts
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment