summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-16 19:22:51 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-16 19:22:51 (GMT)
commitab9b238cedc21da5be6819145a997a83c3bc2d7c (patch)
treef206f12a344a350e91343fb7d7b8d4a2911dac28 /Doc/lib
parent3eb46f3a5d0e011e4c56cd90ac377dee479e3a4a (diff)
downloadcpython-ab9b238cedc21da5be6819145a997a83c3bc2d7c.zip
cpython-ab9b238cedc21da5be6819145a997a83c3bc2d7c.tar.gz
cpython-ab9b238cedc21da5be6819145a997a83c3bc2d7c.tar.bz2
Fix a few usage and style-guide conformance issues.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/emailparser.tex20
1 files changed, 10 insertions, 10 deletions
diff --git a/Doc/lib/emailparser.tex b/Doc/lib/emailparser.tex
index 724de08..e303f93 100644
--- a/Doc/lib/emailparser.tex
+++ b/Doc/lib/emailparser.tex
@@ -13,8 +13,8 @@ most email document structures, including MIME documents. You can
pass the parser a string or a file object, and the parser will return
to you the root \class{Message} instance of the object tree. For
simple, non-MIME messages the payload of this root object will likely
-be a string (e.g. containing the text of the message). For MIME
-messages, the root object will return 1 from its
+be a string containing the text of the message. For MIME
+messages, the root object will return true from its
\method{is_multipart()} method, and the subparts can be accessed via
the \method{get_payload()} and \method{walk()} methods.
@@ -39,10 +39,10 @@ same API as the \class{Parser} class.
\begin{classdesc}{Parser}{\optional{_class}}
The constructor for the \class{Parser} class takes a single optional
-argument \var{_class}. This must be callable factory (i.e. a function
-or a class), and it is used whenever a sub-message object needs to be
-created. It defaults to \class{Message} (see
-\refmodule{email.Message}). \var{_class} will be called with zero
+argument \var{_class}. This must be a callable factory (such as a
+function or a class), and it is used whenever a sub-message object
+needs to be created. It defaults to \class{Message} (see
+\refmodule{email.Message}). The factory will be called without
arguments.
\end{classdesc}
@@ -105,9 +105,9 @@ Here are some notes on the parsing semantics:
blocks of headers, \class{Parser} will create a non-multipart
object containing non-multipart subobjects for each header
block.
-\item Another exception is for \mimetype{message/*} types (i.e. more
+\item Another exception is for \mimetype{message/*} types (more
general than \mimetype{message/delivery-status}). These are
- typically \mimetype{message/rfc822} type messages, represented as a
- non-multipart object containing a singleton payload, another
- non-multipart \class{Message} instance.
+ typically \mimetype{message/rfc822} messages, represented as a
+ non-multipart object containing a singleton payload which is
+ another non-multipart \class{Message} instance.
\end{itemize}