summaryrefslogtreecommitdiffstats
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
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