mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Whitespace normalization.
This commit is contained in:
parent
8d7626c23f
commit
a45cacfc1c
7 changed files with 17 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue