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 Mark Wood
Recipients Mark Wood
Date 2016-11-23.16:18:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1479917903.22.0.642970878487.issue28780@psf.upfronthosting.co.za>
In-reply-to
Content
netrc.netrc() throws a NetrcParseError if ~/.netrc contains an entry witout a 'password' field.  Other users of .netrc do not do this.  In my case, I have entries for sftp hosts which will use public-key authentication instead of a password.

What I would suggest is that if any or all of 'login', 'account', and 'password' are omitted, simply accept that and store a 0-length string.

Someone on StackOverflow says he has rewritten netrc to fix various problems but doesn't know how to contribute it.  http://stackoverflow.com/questions/28754547/python-netrc-error-on-file-with-comment
History
Date User Action Args
2016-11-23 16:18:23Mark Woodsetrecipients: + Mark Wood
2016-11-23 16:18:23Mark Woodsetmessageid: <1479917903.22.0.642970878487.issue28780@psf.upfronthosting.co.za>
2016-11-23 16:18:23Mark Woodlinkissue28780 messages
2016-11-23 16:18:22Mark Woodcreate