mirror of
https://github.com/python/cpython.git
synced 2025-08-30 13:38:43 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ def join(a, *p):
|
||||||
for b in p:
|
for b in p:
|
||||||
if isabs(b):
|
if isabs(b):
|
||||||
path = b
|
path = b
|
||||||
elif path == '' or path[-1:] in '/\\':
|
elif path == '' or path[-1:] in '/\\:':
|
||||||
path = path + b
|
path = path + b
|
||||||
else:
|
else:
|
||||||
path = path + os.sep + b
|
path = path + os.sep + b
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue