mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #9850: Fixed macpath.join() for empty first component. Patch by
Oleg Oshmyan.
This commit is contained in:
parent
3e67d583ee
commit
ca534ab495
3 changed files with 28 additions and 1 deletions
|
@ -53,7 +53,7 @@ def join(s, *p):
|
|||
colon = _get_colon(s)
|
||||
path = s
|
||||
for t in p:
|
||||
if (not s) or isabs(t):
|
||||
if (not path) or isabs(t):
|
||||
path = t
|
||||
continue
|
||||
if t[:1] == colon:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue