summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-20 03:47:14 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-20 03:47:14 (GMT)
commita45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c (patch)
treed6f8c90d17a1b690f15037493c348468cc14cd3f /Lib/posixpath.py
parent8d7626c23f89cfed31b04a05c9ec2fba7e0a7bf4 (diff)
downloadcpython-a45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c.zip
cpython-a45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c.tar.gz
cpython-a45cacfc1c4fb2b7b1b5c74e1f6b56d6ca2c9e4c.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 345a742..1a25934 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -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