diff options
author | Tim Peters <tim.peters@gmail.com> | 2000-09-19 23:46:56 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2000-09-19 23:46:56 (GMT) |
commit | ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b (patch) | |
tree | b0fbc122680c9cefad31009ee7eff0ee885714e4 /Lib/dospath.py | |
parent | f86eda5d1921258a1b8bcc9c1779d579cfbe7b1c (diff) | |
download | cpython-ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b.zip cpython-ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b.tar.gz cpython-ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b.tar.bz2 |
Treat trailing colon in os.path.join("a:", "b") same way for DOS as in
recent changes to ntpath.py and posixmodule.c. Thanks to Guido for
pointing out the inconsistency!
Diffstat (limited to 'Lib/dospath.py')
-rw-r--r-- | Lib/dospath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/dospath.py b/Lib/dospath.py index 98efe67..61fde00 100644 --- a/Lib/dospath.py +++ b/Lib/dospath.py @@ -36,7 +36,7 @@ def join(a, *p): for b in p: if isabs(b): path = b - elif path == '' or path[-1:] in '/\\': + elif path == '' or path[-1:] in '/\\:': path = path + b else: path = path + os.sep + b |