diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-08-02 14:54:16 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-08-02 14:54:16 (GMT) |
commit | c75f11222c0a6c6fb2856c613a27df0a49c0695a (patch) | |
tree | 396c44b520ff06b912f1171c6986daf720339824 /Lib/posixpath.py | |
parent | a3711f73c1bdc4022d4c77a37c884672817c88f8 (diff) | |
download | cpython-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.py | 2 |
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: |