mirror of
https://github.com/python/cpython.git
synced 2025-10-03 05:35:59 +00:00
Document the new ,netrc awareness in nntplib.
This commit is contained in:
parent
f91b4619e0
commit
2852cbaf26
1 changed files with 3 additions and 2 deletions
|
@ -58,8 +58,9 @@ The module itself defines the following items:
|
||||||
Return a new instance of the \class{NNTP} class, representing a
|
Return a new instance of the \class{NNTP} class, representing a
|
||||||
connection to the NNTP server running on host \var{host}, listening at
|
connection to the NNTP server running on host \var{host}, listening at
|
||||||
port \var{port}. The default \var{port} is 119. If the optional
|
port \var{port}. The default \var{port} is 119. If the optional
|
||||||
\var{user} and \var{password} are provided, the
|
\var{user} and \var{password} are provided,
|
||||||
\samp{AUTHINFO USER} and \samp{AUTHINFO PASS} commands are used to
|
or if suitable credentials are present in \file{~/.netrc},
|
||||||
|
the \samp{AUTHINFO USER} and \samp{AUTHINFO PASS} commands are used to
|
||||||
identify and authenticate the user to the server. If the optional
|
identify and authenticate the user to the server. If the optional
|
||||||
flag \var{readermode} is true, then a \samp{mode reader} command is
|
flag \var{readermode} is true, then a \samp{mode reader} command is
|
||||||
sent before authentication is performed. Reader mode is sometimes
|
sent before authentication is performed. Reader mode is sometimes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue