From: Andrew M. Kuchling Date: Mon, 2 Aug 2004 14:54:16 +0000 (+0000) Subject: Use isabs() in conditional, not abspath X-Git-Tag: v2.4a2~62 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c75f11222c0a6c6fb2856c613a27df0a49c0695a;p=python Use isabs() in conditional, not abspath --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index a344a076e1..557f8f21cb 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: