diff options
author | Georg Brandl <georg@python.org> | 2005-06-03 14:28:50 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-06-03 14:28:50 +0000 |
commit | 268e61cf7458d85d2e100480635390ebd480088f (patch) | |
tree | 62c42ea1bbe7be196808c7239d861f4a27075df8 /Lib/posixpath.py | |
parent | 56616999950e151bed766a076e6a6b10f3492f8c (diff) | |
download | cpython-git-268e61cf7458d85d2e100480635390ebd480088f.tar.gz |
Bug #1213894: os.path.realpath didn't resolve symlinks that were the first
component of the path.
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r-- | Lib/posixpath.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index b29eedc38b..261e5a7db2 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -414,7 +414,7 @@ symbolic links encountered in the path.""" if isabs(filename): bits = ['/'] + filename.split('/')[1:] else: - bits = filename.split('/') + bits = [''] + filename.split('/') for i in range(2, len(bits)+1): component = join(*bits[0:i]) |