[Python-checkins] python/dist/src/Lib posixpath.py,1.73,1.74

birkenfeld@users.sourceforge.net birkenfeld at users.sourceforge.net
Fri Jun 3 16:25:16 CEST 2005


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5595/Lib
Modified Files:
	posixpath.py 
Log Message:
Bug #1213894: os.path.realpath didn't resolve symlinks that were the first
component of the path.
Index: posixpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/posixpath.py,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -d -r1.73 -r1.74
--- posixpath.py	30 Aug 2004 10:19:55 -0000	1.73
+++ posixpath.py	3 Jun 2005 14:24:43 -0000	1.74
@@ -414,7 +414,7 @@
 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])


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /