summaryrefslogtreecommitdiffstats
path: root/Lib/imghdr.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2002-11-13 23:05:35 (GMT)
committerEric S. Raymond <esr@thyrsus.com>2002-11-13 23:05:35 (GMT)
commitb2db587b118b1ebb90d20d724bbb826290d83c35 (patch)
tree6d44aba1ab05f363dc87743a4cc4c0ac94b5aeda /Lib/imghdr.py
parent4c8be8510b753a3caedacb689162b15a24605a29 (diff)
downloadcpython-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