diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2002-11-13 23:05:35 (GMT) |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2002-11-13 23:05:35 (GMT) |
commit | b2db587b118b1ebb90d20d724bbb826290d83c35 (patch) | |
tree | 6d44aba1ab05f363dc87743a4cc4c0ac94b5aeda /Lib/imghdr.py | |
parent | 4c8be8510b753a3caedacb689162b15a24605a29 (diff) | |
download | cpython-b2db587b118b1ebb90d20d724bbb826290d83c35.zip cpython-b2db587b118b1ebb90d20d724bbb826290d83c35.tar.gz cpython-b2db587b118b1ebb90d20d724bbb826290d83c35.tar.bz2 |
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.
Diffstat (limited to 'Lib/imghdr.py')
0 files changed, 0 insertions, 0 deletions