[Python-checkins] python/dist/src/Doc/lib libnntplib.tex,1.31,1.32
loewis at users.sourceforge.net
loewis at users.sourceforge.net
Tue Aug 3 16:36:34 CEST 2004
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30893/Doc/lib
Modified Files:
libnntplib.tex
Log Message:
Patch #823072: add option to NOT use ~/.netrc in nntplib.NNTP().
Index: libnntplib.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/libnntplib.tex,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** libnntplib.tex 30 Jul 2004 16:08:49 -0000 1.31
--- libnntplib.tex 3 Aug 2004 14:36:32 -0000 1.32
***************
*** 55,64 ****
\begin{classdesc}{NNTP}{host\optional{, port
\optional{, user\optional{, password
! \optional{, readermode}}}}}
Return a new instance of the \class{NNTP} class, representing a
connection to the NNTP server running on host \var{host}, listening at
port \var{port}. The default \var{port} is 119. If the optional
\var{user} and \var{password} are provided,
! 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
--- 55,66 ----
\begin{classdesc}{NNTP}{host\optional{, port
\optional{, user\optional{, password
! \optional{, readermode}
! \optional{, usenetrc}}}}}
Return a new instance of the \class{NNTP} class, representing a
connection to the NNTP server running on host \var{host}, listening at
port \var{port}. The default \var{port} is 119. If the optional
\var{user} and \var{password} are provided,
! or if suitable credentials are present in \file{~/.netrc} and the
! optional flag \var{usenetrc} is true (the default),
the \samp{AUTHINFO USER} and \samp{AUTHINFO PASS} commands are used to
identify and authenticate the user to the server. If the optional
***************
*** 69,72 ****
--- 71,77 ----
you get unexpected \code{NNTPPermanentError}s, you might need to set
\var{readermode}. \var{readermode} defaults to \code{None}.
+ \var{usenetrc} defaults to \code{True}.
+
+ \versionchanged[\var{usenetrc} argument added]{2.4}
\end{classdesc}
More information about the Python-checkins
mailing list