commit | ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Tue Sep 19 23:46:56 2000 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Tue Sep 19 23:46:56 2000 +0000 |
tree | b0fbc122680c9cefad31009ee7eff0ee885714e4 | |
parent | f86eda5d1921258a1b8bcc9c1779d579cfbe7b1c [diff] |
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!
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 @@ 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