diff options
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r-- | Lib/macpath.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index 8d2b18a..43bec56 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. |