From: Tim Peters Date: Tue, 19 Sep 2000 23:46:56 +0000 (+0000) Subject: Treat trailing colon in os.path.join("a:", "b") same way for DOS as in X-Git-Tag: v2.0b2~187 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b;p=python 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 98efe6751f..61fde00043 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