This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author bfroehle
Recipients bfroehle
Date 2012-05-10.02:25:18
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336616719.53.0.0181039084053.issue14768@psf.upfronthosting.co.za>
In-reply-to
Content
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; print os.path.expanduser('~/a')"
//a
$ HOME=/ python3.2 -c "import os; print(os.path.expanduser('~/a'))"
//a

In each case the expected result should be '/a'.
History
Date User Action Args
2012-05-10 02:25:19bfroehlesetrecipients: + bfroehle
2012-05-10 02:25:19bfroehlesetmessageid: <1336616719.53.0.0181039084053.issue14768@psf.upfronthosting.co.za>
2012-05-10 02:25:19bfroehlelinkissue14768 messages
2012-05-10 02:25:18bfroehlecreate