Fix for boundary case (Jack)

This commit is contained in:
Guido van Rossum 1997-05-21 14:59:17 +00:00
parent 7806c16650
commit d6a111e2dd

View File

@ -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.