From: Guido van Rossum Date: Wed, 21 May 1997 14:59:17 +0000 (+0000) Subject: Fix for boundary case (Jack) X-Git-Tag: v1.5a3~502 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6a111e2dd257510069e46e5d8bb85abd80cf184;p=python Fix for boundary case (Jack) --- diff --git a/Lib/macpath.py b/Lib/macpath.py index 8d2b18a68c..43bec56104 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -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.