New submission from Bradley Froehle brad.froe...@gmail.com:
When $HOME=/, os.path.expanduser('~/a') returns '//a' rather than '/a'.
This regression was created by a partially incorrect resolution to issue #5471,
and affects versions 2.7 and 3.2 (at least).
$ HOME=/ python2.7 -c import os;
Jesús Cea Avión j...@jcea.es added the comment:
I though that this situation would be happen for ANY env with $HOME ending in
/, but it is not the case:
jcea@ubuntu:~$ echo $HOME
/home/jcea
jcea@ubuntu:~$ python
Python 2.7.3 (default, Apr 12 2012, 13:11:53)
[GCC 4.4.3] on linux2
Type help,
Changes by Jesús Cea Avión j...@jcea.es:
--
keywords: +easy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14768
___
___
Python-bugs-list mailing
Bradley Froehle brad.froe...@gmail.com added the comment:
Patch (for version 2.7) attached.
--
keywords: +patch
Added file: http://bugs.python.org/file25514/issue_14768.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14768
Changes by Jesús Cea Avión j...@jcea.es:
--
assignee: - jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14768
___
___
Python-bugs-list mailing
Roundup Robot devn...@psf.upfronthosting.co.za added the comment:
New changeset e472481b6d73 by Jesus Cea in branch '3.2':
Closes #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is
'/'
http://hg.python.org/cpython/rev/e472481b6d73
New changeset 299dc54ad014 by Jesus Cea in