[Python-checkins] r52065 - in python/trunk: Lib/posixpath.py Misc/NEWS
georg.brandl
python-checkins at python.org
Sat Sep 30 11:13:22 CEST 2006
Author: georg.brandl
Date: Sat Sep 30 11:13:21 2006
New Revision: 52065
Modified:
python/trunk/Lib/posixpath.py
python/trunk/Misc/NEWS
Log:
Bug #1566602: correct failure of posixpath unittest when $HOME ends
with a slash.
Modified: python/trunk/Lib/posixpath.py
==============================================================================
--- python/trunk/Lib/posixpath.py (original)
+++ python/trunk/Lib/posixpath.py Sat Sep 30 11:13:21 2006
@@ -259,8 +259,7 @@
except KeyError:
return path
userhome = pwent.pw_dir
- if userhome.endswith('/'):
- i += 1
+ userhome = userhome.rstrip('/')
return userhome + path[i:]
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS (original)
+++ python/trunk/Misc/NEWS Sat Sep 30 11:13:21 2006
@@ -63,6 +63,9 @@
Library
-------
+- Bug #1566602: correct failure of posixpath unittest when $HOME ends
+ with a slash.
+
- Bug #1565661: in webbrowser, split() the command for the default
GNOME browser in case it is a command with args.
More information about the Python-checkins
mailing list