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 | c7fff3467f7f8abfcec09744e60c597f51719a63 (patch) | |
tree | 8592c591a4867721013b614866172663a505aa3b /Lib/posixpath.py | |
parent | f87f3b42065bfb1ee1d1cd62c2f7ead4b8d0a9ed (diff) | |
download | cpython-c7fff3467f7f8abfcec09744e60c597f51719a63.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]) |