summaryrefslogtreecommitdiff
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-08-23 13:32:20 +0000
committerGuido van Rossum <guido@python.org>1994-08-23 13:32:20 +0000
commit187c87445dfd2703e4cb95020d8ed7faf171b6b6 (patch)
tree799b1599e535156e223244ba7839b5568eeee387 /Lib/macpath.py
parent2b2e2dcd32edcbb7a2b627178cf59b3ea00ee3ba (diff)
downloadcpython-187c87445dfd2703e4cb95020d8ed7faf171b6b6.tar.gz
* 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)
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r--Lib/macpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py
index b5c17f0be7..0e32ab2168 100644
--- a/Lib/macpath.py
+++ b/Lib/macpath.py
@@ -43,7 +43,7 @@ def split(s):
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()