[Python-checkins] CVS: python/dist/src/Doc/lib emailparser.tex,1.3,1.4
Fred L. Drake
fdrake@users.sourceforge.net
2001年10月16日 12:22:53 -0700
Update of /cvsroot/python/python/dist/src/Doc/lib
In directory usw-pr-cvs1:/tmp/cvs-serv22570/lib
Modified Files:
emailparser.tex
Log Message:
Fix a few usage and style-guide conformance issues.
Index: emailparser.tex
===================================================================
RCS file: /cvsroot/python/python/dist/src/Doc/lib/emailparser.tex,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** emailparser.tex 2001年10月11日 15:45:05 1.3
--- emailparser.tex 2001年10月16日 19:22:51 1.4
***************
*** 14,19 ****
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
\method{is_multipart()} method, and the subparts can be accessed via
the \method{get_payload()} and \method{walk()} methods.
--- 14,19 ----
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 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.
***************
*** 40,47 ****
\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
arguments.
\end{classdesc}
--- 40,47 ----
\begin{classdesc}{Parser}{\optional{_class}}
The constructor for the \class{Parser} class takes a single optional
! 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}
***************
*** 106,113 ****
object containing non-multipart subobjects for each header
block.
! \item Another exception is for \mimetype{message/*} types (i.e. 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.
\end{itemize}
--- 106,113 ----
object containing non-multipart subobjects for each header
block.
! \item Another exception is for \mimetype{message/*} types (more
general than \mimetype{message/delivery-status}). These are
! 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}