summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2004-07-11 19:16:21 (GMT)
committerBrett Cannon <bcannon@gmail.com>2004-07-11 19:16:21 (GMT)
commitdfa5d95613416e0fe2cfeb959d176ae616751597 (patch)
tree44a1a1b6dbbf7a57ce40c1e6d607fbf2c4ce2fd9 /Lib
parent3f7cb5d9f5ddafc1a0c79775304fc74b829a11c1 (diff)
downloadcpython-dfa5d95613416e0fe2cfeb959d176ae616751597.zip
cpython-dfa5d95613416e0fe2cfeb959d176ae616751597.tar.gz
cpython-dfa5d95613416e0fe2cfeb959d176ae616751597.tar.bz2
Remove tabs introduced in last commit.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/posixpath.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 85a26da..223517e 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -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))