diff Lib/macpath.py @ 1810:d892ac4b4fb9 legacy-trunk

* Lib/linecache.py: don't crash on empty filename * Lib/macpath.py: don't return trailing colon for dirname() (XXX won't do for volume names -- but otherwise glob(':*:*.py') loops forever) * Lib/traceback.py: print SyntaxError correctly * Lib/stat.py: moved to posixstat.py; added macstat.py which has the constants for the Mac; and created new stat.py which includes the right one * Lib/urllib.py: fix caching bug (by disabling the cache)
author Guido van Rossum <guido@python.org>
date Tue, 23 Aug 1994 13:32:20 +0000
parents db817f3a1c65
children a81b6db6d33c
line wrap: on
line diff
--- a/Lib/macpath.py	Tue Aug 23 13:29:21 1994 +0000
+++ b/Lib/macpath.py	Tue Aug 23 13:32:20 1994 +0000
@@ -43,7 +43,7 @@
 	colon = 0
 	for i in range(len(s)):
 		if s[i] == ':': colon = i+1
-	return s[:colon], s[colon:]
+	return s[:colon-1], s[colon:]
 
 
 # Short interfaces to split()