From ceeda0e9ba0a734cc4f2e4b5be268ba081fd617b Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 19 Sep 2000 23:46:56 +0000 Subject: [PATCH] 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! --- Lib/dospath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0