summaryrefslogtreecommitdiff
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-06-03 14:28:50 +0000
committerGeorg Brandl <georg@python.org>2005-06-03 14:28:50 +0000
commitc7fff3467f7f8abfcec09744e60c597f51719a63 (patch)
tree8592c591a4867721013b614866172663a505aa3b /Lib/posixpath.py
parentf87f3b42065bfb1ee1d1cd62c2f7ead4b8d0a9ed (diff)
downloadcpython-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.py2
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])