]> granicus.if.org Git - python/commitdiff
Use isabs() in conditional, not abspath
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 2 Aug 2004 14:54:16 +0000 (14:54 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 2 Aug 2004 14:54:16 +0000 (14:54 +0000)
Lib/posixpath.py

index a344a076e11b2c1d2e38a85dba2e6eeef2624a24..557f8f21cbfcdc4631dd870802d179b315d4dd97 100644 (file)
@@ -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: