From: Brett Cannon Date: Sun, 11 Jul 2004 19:17:38 +0000 (+0000) Subject: Remove tabs introduced in last commit. X-Git-Tag: v2.3.5c1~183 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed44f13d2e47c1382fcbe0c94be8054e0eeb05b1;p=thirdparty%2FPython%2Fcpython.git Remove tabs introduced in last commit. --- diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 5ee25843f714..17689f0c8998 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -409,7 +409,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 @@ -428,12 +428,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))