]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use isabs() in conditional, not abspath
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 2 Aug 2004 14:57:47 +0000 (14:57 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 2 Aug 2004 14:57:47 +0000 (14:57 +0000)
Lib/posixpath.py

index 17689f0c89987b06623982681d3e150bc7ea243d..fc35e75761b0e0a670a3f0c35a0252089bb5caa2 100644 (file)
@@ -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: