From be73439f5dba7546b988cccc56be886c53c3b91f Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 2 Aug 2004 14:57:47 +0000 Subject: [PATCH] Use isabs() in conditional, not abspath --- Lib/posixpath.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3