Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
9c9a9ab6
Commit
9c9a9ab6
authored
Sep 30, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug #1566602: correct failure of posixpath unittest when $HOME ends
with a slash. (backport from rev. 52065)
parent
ad4e11e1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
Lib/posixpath.py
Lib/posixpath.py
+1
-2
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/posixpath.py
View file @
9c9a9ab6
...
...
@@ -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
:]
...
...
Misc/NEWS
View file @
9c9a9ab6
...
...
@@ -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
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment