Whitespace normalization.

This commit is contained in:
Tim Peters 2004-08-20 03:47:14 +00:00
parent 8d7626c23f
commit a45cacfc1c
7 changed files with 17 additions and 17 deletions

View file

@ -404,7 +404,7 @@ symbolic links encountered in the path."""
bits = ['/'] + filename.split('/')[1:]
else:
bits = filename.split('/')
for i in range(2, len(bits)+1):
component = join(*bits[0:i])
# Resolve symbolic links.
@ -415,10 +415,10 @@ symbolic links encountered in the path."""
return abspath(join(*([component] + bits[i:])))
else:
newpath = join(*([resolved] + bits[i:]))
return realpath(newpath)
return realpath(newpath)
return abspath(filename)
def _resolve_link(path):
"""Internal helper function. Takes a path and follows symlinks