Raymond Hettinger" <firstname.lastname@example.org
Thu, 24 Apr 2003 13:48:09 -0400
> > Please at least do not produce the NetrcParseError when the
> > "login" field is omitted. This can be done by changing the
> > "else:" above "malformed %s entry" to "elif not password:".
> > That is the minimal change to make this module work on my
> > system.
Bram is requesting netrc.py be modified to exclude entries
without a login field. An example use case is for mail servers:
machine mail password fruit
If the change is made, the line won't be handled at all. It
would be silently skipped. Currently is raises a NetrcParseError.
Do you guys think this is appropriate? On the one hand,
it's a bummer that netrc.py cannot currently be used with
files containing these lines. On the other hand, silently
skipping over them doesn't seem quite right either.
P.S. He would also like (but does not have to have) this