]> granicus.if.org Git - python/commitdiff
Remove tabs introduced in last commit.
authorBrett Cannon <bcannon@gmail.com>
Sun, 11 Jul 2004 19:16:21 +0000 (19:16 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sun, 11 Jul 2004 19:16:21 +0000 (19:16 +0000)
Lib/posixpath.py

index 85a26daee9a159692646d19c6207dbde33fbc873..223517e416304d9fbd7f2c68418b1d766f8f17d1 100644 (file)
@@ -406,7 +406,7 @@ symbolic links encountered in the path."""
     for i in range(2, len(bits)+1):
         component = join(*bits[0:i])
         # Resolve symbolic links.
-       if islink(component):
+        if islink(component):
             resolved = _resolve_link(component)
             if resolved is None:
                 # Infinite loop -- return original component + rest of the path
@@ -425,12 +425,12 @@ def _resolve_link(path):
     """
     paths_seen = []
     while islink(path):
-       if path in paths_seen:
+        if path in paths_seen:
             # Already seen this path, so we must have a symlink loop
             return None
-       paths_seen.append(path)
+        paths_seen.append(path)
         # Resolve where the link points to
-       resolved = os.readlink(path)
+        resolved = os.readlink(path)
         if not abspath(resolved):
             dir = dirname(path)
             path = normpath(join(dir, resolved))