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

Fix for boundary case (Jack)

parent 75f42651
......@@ -45,7 +45,10 @@ def split(s):
colon = 0
for i in range(len(s)):
if s[i] == ':': colon = i+1
return s[:colon-1], s[colon:]
path, file = s[:colon-1], s[colon:]
if path and not ':' in path:
path = path + ':'
return path, file
# Split a path in root and extension.
......
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