commit | c75f11222c0a6c6fb2856c613a27df0a49c0695a | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Mon Aug 02 14:54:16 2004 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Mon Aug 02 14:54:16 2004 +0000 |
tree | 396c44b520ff06b912f1171c6986daf720339824 | |
parent | a3711f73c1bdc4022d4c77a37c884672817c88f8 [diff] |
Use isabs() in conditional, not abspath
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 @@ 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: