From 0eeba5b24b0cf5297421c7bd5dbc38aff774dc5f Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Tue, 19 Sep 2000 20:39:32 +0000 Subject: [PATCH] Part of SF patch 101481: on Windows, os.path.join("a:", "b") should yield "a:b", not "a:/b". Similar change was made to posixmodule.c earlier. --- Lib/ntpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/ntpath.py b/Lib/ntpath.py index aa441bd69a3..c68232b2cf9 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -41,7 +41,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