Commit 9c9a9ab6 authored by Georg Brandl's avatar Georg Brandl

Bug #1566602: correct failure of posixpath unittest when $HOME ends

with a slash.
 (backport from rev. 52065)
parent ad4e11e1
......@@ -328,8 +328,7 @@ def expanduser(path):
except KeyError:
return path
userhome = pwent.pw_dir
if userhome.endswith('/'):
i += 1
userhome = userhome.rstrip('/')
return userhome + path[i:]
......
......@@ -41,6 +41,9 @@ Extension Modules
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.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment