* 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)
diff --git a/Lib/macpath.py b/Lib/macpath.py
index b5c17f0..0e32ab2 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -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()