mirror of
https://github.com/python/cpython.git
synced 2025-07-23 19:25:40 +00:00
Fix minor (English) usage nits.
This commit is contained in:
parent
bcd5454d63
commit
e2effbd32d
1 changed files with 6 additions and 10 deletions
|
@ -4,9 +4,9 @@
|
||||||
%the imaplib ``chapter''.
|
%the imaplib ``chapter''.
|
||||||
|
|
||||||
\section{\module{poplib} ---
|
\section{\module{poplib} ---
|
||||||
POP3 protocol client.}
|
POP3 protocol client}
|
||||||
\declaremodule{standard}{poplib}
|
|
||||||
|
|
||||||
|
\declaremodule{standard}{poplib}
|
||||||
\modulesynopsis{POP3 protocol client (requires sockets).}
|
\modulesynopsis{POP3 protocol client (requires sockets).}
|
||||||
|
|
||||||
\indexii{POP3}{protocol}
|
\indexii{POP3}{protocol}
|
||||||
|
@ -24,7 +24,7 @@ created when the instance is initialized.
|
||||||
If \var{port} is omitted, the standard POP3 port (110) is used.
|
If \var{port} is omitted, the standard POP3 port (110) is used.
|
||||||
\end{classdesc}
|
\end{classdesc}
|
||||||
|
|
||||||
One exception is defined as attributes of the \module{poplib} module:
|
One exception is defined as an attribute of the \module{poplib} module:
|
||||||
|
|
||||||
\begin{excdesc}{error_proto}
|
\begin{excdesc}{error_proto}
|
||||||
Exception raised on any errors. The reason for the exception is
|
Exception raised on any errors. The reason for the exception is
|
||||||
|
@ -32,13 +32,10 @@ passed to the constructor as a string.
|
||||||
\end{excdesc}
|
\end{excdesc}
|
||||||
|
|
||||||
|
|
||||||
\subsection{POP3 Objects}
|
\subsection{POP3 Objects \label{pop3-objects}}
|
||||||
\label{pop3-objects}
|
|
||||||
|
|
||||||
All POP3 commands are represented by methods of the same name,
|
All POP3 commands are represented by methods of the same name,
|
||||||
in lower-case.
|
in lower-case; most return the response text sent by the server.
|
||||||
|
|
||||||
Most commands return the response text sent by the server.
|
|
||||||
|
|
||||||
An \class{POP3} instance has the following methods:
|
An \class{POP3} instance has the following methods:
|
||||||
|
|
||||||
|
@ -112,8 +109,7 @@ message, otherwise result is list \code{['response',
|
||||||
\end{methoddesc}
|
\end{methoddesc}
|
||||||
|
|
||||||
|
|
||||||
\subsection{POP3 Example}
|
\subsection{POP3 Example \label{pop3-example}}
|
||||||
\label{pop3-example}
|
|
||||||
|
|
||||||
Here is a minimal example (without error checking) that opens a
|
Here is a minimal example (without error checking) that opens a
|
||||||
mailbox and retrieves and prints all messages:
|
mailbox and retrieves and prints all messages:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue