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.
This commit is contained in:
Tim Peters 2000-09-19 20:39:32 +00:00
parent f5fa0fc640
commit 0eeba5b24b
1 changed files with 1 additions and 1 deletions

View File

@ -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