Issue #9850: Fixed macpath.join() for empty first component. Patch by

Oleg Oshmyan.
This commit is contained in:
Serhiy Storchaka 2014-09-27 18:53:23 +03:00
parent 3e67d583ee
commit ca534ab495
3 changed files with 28 additions and 1 deletions

View file

@ -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: