mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +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:
|
||||
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…
Add table
Add a link
Reference in a new issue