mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Treat trailing colon in os.path.join("a:", "b") same way for DOS as in
recent changes to ntpath.py and posixmodule.c. Thanks to Guido for pointing out the inconsistency!
This commit is contained in:
parent
f86eda5d19
commit
ceeda0e9ba
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,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