]> granicus.if.org Git - python/commit
Make nntplib aware of ~/.netrc credentials; now they get used if they are
authorEric S. Raymond <esr@thyrsus.com>
Wed, 13 Nov 2002 23:05:35 +0000 (23:05 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 13 Nov 2002 23:05:35 +0000 (23:05 +0000)
commitb2db587b118b1ebb90d20d724bbb826290d83c35
tree6d44aba1ab05f363dc87743a4cc4c0ac94b5aeda
parent4c8be8510b753a3caedacb689162b15a24605a29
Make nntplib aware of ~/.netrc credentials; now they get used if they are
present and the caller has not specified a name/password pair.  This change
makes it less likely that a lazy coder will expose sensitive information in a
word-readable script.

Also, make the test a bit smarter.  If NNTPSERVER is defined in the environment
it will go talk to that server rather than look for a possibly nonexistent
local one named 'news'.  Maybe the osession initializer ought to look at
NNTPSERVER rather than requiring a host arg?  Must look around and see how
universal this convention is first.
Lib/nntplib.py