summaryrefslogtreecommitdiffstats
path: root/Lib/macpath.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-09-27 15:55:15 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-09-27 15:55:15 (GMT)
commit402e1e388d0e686b761768e672832b6ab9ca1dec (patch)
treee095063eded91105da0097e82de8903a0369d902 /Lib/macpath.py
parentfe21e4d4d76d3fd1efd16d124808d72a69588d7b (diff)
parentca534ab4957f3ed081133f2174543d8a560a4051 (diff)
downloadcpython-402e1e388d0e686b761768e672832b6ab9ca1dec.zip
cpython-402e1e388d0e686b761768e672832b6ab9ca1dec.tar.gz
cpython-402e1e388d0e686b761768e672832b6ab9ca1dec.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: