diff Lib/macpath.py @ 5576:c7d812e4af0d legacy-trunk

Fix for boundary case (Jack)
author Guido van Rossum <guido@python.org>
date Wed, 21 May 1997 14:59:17 +0000
parents a513d83c06cb
children 88992696b9e8
line wrap: on
line diff
--- a/Lib/macpath.py	Wed May 21 14:48:15 1997 +0000
+++ b/Lib/macpath.py	Wed May 21 14:59:17 1997 +0000
@@ -45,7 +45,10 @@
 	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.