From: Andrew M. Kuchling Date: Mon, 2 Aug 2004 14:57:47 +0000 (+0000) Subject: Use isabs() in conditional, not abspath X-Git-Tag: v2.3.5c1~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=be73439f5dba7546b988cccc56be886c53c3b91f;p=thirdparty%2FPython%2Fcpython.git Use isabs() in conditional, not abspath --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 17689f0c8998..fc35e75761b0 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -434,7 +434,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: