From: Tim Peters Date: Tue, 19 Sep 2000 20:39:32 +0000 (+0000) Subject: Part of SF patch 101481: on Windows, os.path.join("a:", "b") should yield X-Git-Tag: v2.0b2~191 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0eeba5b24b0cf5297421c7bd5dbc38aff774dc5f;p=python 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. --- diff --git a/Lib/ntpath.py b/Lib/ntpath.py index aa441bd69a..c68232b2cf 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