diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-27 15:53:23 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-09-27 15:53:23 (GMT) |
commit | ca534ab4957f3ed081133f2174543d8a560a4051 (patch) | |
tree | b0a7d372f3404e5b953b0f57e9771cfcd43faaab /Lib/macpath.py | |
parent | 3e67d583ee75b99cc42b18443e4721d41ea523cb (diff) | |
download | cpython-ca534ab4957f3ed081133f2174543d8a560a4051.zip cpython-ca534ab4957f3ed081133f2174543d8a560a4051.tar.gz cpython-ca534ab4957f3ed081133f2174543d8a560a4051.tar.bz2 |
Issue #9850: Fixed macpath.join() for empty first component. Patch by
Oleg Oshmyan.
Diffstat (limited to 'Lib/macpath.py')
-rw-r--r-- | Lib/macpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index d34f9e94..5ca0097 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -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: |