diff options
author | Guido van Rossum <guido@python.org> | 1994-08-23 13:32:20 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1994-08-23 13:32:20 (GMT) |
commit | 7aeb4b9ce85fa9d15c79bbb3c1ccf6cc31cd5e61 (patch) | |
tree | 4dc519fdd727cc179d5b884ae117871ec02695eb /Lib/macpath.py | |
parent | 9e1e149a5fbb0b24c4f3b7a2cc52e5236a715ee4 (diff) | |
download | cpython-7aeb4b9ce85fa9d15c79bbb3c1ccf6cc31cd5e61.zip cpython-7aeb4b9ce85fa9d15c79bbb3c1ccf6cc31cd5e61.tar.gz cpython-7aeb4b9ce85fa9d15c79bbb3c1ccf6cc31cd5e61.tar.bz2 |
* 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.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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() |