summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-08-02 14:54:16 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-08-02 14:54:16 (GMT)
commitc75f11222c0a6c6fb2856c613a27df0a49c0695a (patch)
tree396c44b520ff06b912f1171c6986daf720339824 /Lib/posixpath.py
parenta3711f73c1bdc4022d4c77a37c884672817c88f8 (diff)
downloadcpython-c75f11222c0a6c6fb2856c613a27df0a49c0695a.zip
cpython-c75f11222c0a6c6fb2856c613a27df0a49c0695a.tar.gz
cpython-c75f11222c0a6c6fb2856c613a27df0a49c0695a.tar.bz2
Use isabs() in conditional, not abspath
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index a344a07..557f8f2 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -431,7 +431,7 @@ def _resolve_link(path):
paths_seen.append(path)
# Resolve where the link points to
resolved = os.readlink(path)
- if not abspath(resolved):
+ if not isabs(resolved):
dir = dirname(path)
path = normpath(join(dir, resolved))
else: