summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-27 15:53:23 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-27 15:53:23 (GMT)
commitca534ab4957f3ed081133f2174543d8a560a4051 (patch)
treeb0a7d372f3404e5b953b0f57e9771cfcd43faaab /Lib/macpath.py
parent3e67d583ee75b99cc42b18443e4721d41ea523cb (diff)
downloadcpython-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.py2
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: