mirror of https://github.com/python/cpython.git
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:
parent
f5fa0fc640
commit
0eeba5b24b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue