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 terry.reedy
Recipients Dimitri Merejkowsky, berker.peksag, terry.reedy
Date 2016-10-07.22:07:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1475878021.21.0.819021492169.issue28334@psf.upfronthosting.co.za>
In-reply-to
Content
On Windows, HOME is both split into two variables and replaced by USERPROFILE.
C:\Users\Terry>set HOME
HOMEDRIVE=C:
HOMEPATH=\Users\Terry

C:\Users\Terry>set USERPROFILE
USERPROFILE=C:\Users\Terry

So if it make sense to run this on Windows*, I would call it a bug.
* I am guessing that Windows' FTP clients do not use .netrc.

The doc says "the file .netrc in the user’s home directory will be read." without qualification by "if $HOME is set".  I don't remember how os.path.expanduser might otherwise find the home directory on unix and don't know what unix users might reasonbly expect.
History
Date User Action Args
2016-10-07 22:07:01terry.reedysetrecipients: + terry.reedy, berker.peksag, Dimitri Merejkowsky
2016-10-07 22:07:01terry.reedysetmessageid: <1475878021.21.0.819021492169.issue28334@psf.upfronthosting.co.za>
2016-10-07 22:07:01terry.reedylinkissue28334 messages
2016-10-07 22:07:01terry.reedycreate