Bug #1566602: correct failure of posixpath unittest when $HOME ends
with a slash.
This commit is contained in:
parent
fb25773862
commit
8d1e5bffc1
|
@ -259,8 +259,7 @@ def expanduser(path):
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return path
|
return path
|
||||||
userhome = pwent.pw_dir
|
userhome = pwent.pw_dir
|
||||||
if userhome.endswith('/'):
|
userhome = userhome.rstrip('/')
|
||||||
i += 1
|
|
||||||
return userhome + path[i:]
|
return userhome + path[i:]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -63,6 +63,9 @@ Core and builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Bug #1566602: correct failure of posixpath unittest when $HOME ends
|
||||||
|
with a slash.
|
||||||
|
|
||||||
- Bug #1565661: in webbrowser, split() the command for the default
|
- Bug #1565661: in webbrowser, split() the command for the default
|
||||||
GNOME browser in case it is a command with args.
|
GNOME browser in case it is a command with args.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue