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 <>
On Windows, HOME is both split into two variables and replaced by USERPROFILE.
C:\Users\Terry>set HOME

C:\Users\Terry>set USERPROFILE

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.
Date User Action Args
2016-10-07 22:07:01terry.reedysetrecipients: + terry.reedy, berker.peksag, Dimitri Merejkowsky
2016-10-07 22:07:01terry.reedysetmessageid: <>
2016-10-07 22:07:01terry.reedylinkissue28334 messages
2016-10-07 22:07:01terry.reedycreate