mirror of
https://github.com/python/cpython.git
synced 2026-01-04 14:32:21 +00:00
This commit is contained in:
parent
cd3e7ac89b
commit
5bbf30e89e
2 changed files with 4 additions and 3 deletions
|
|
@ -48,8 +48,8 @@ methods.
|
|||
FeedParser API
|
||||
^^^^^^^^^^^^^^
|
||||
|
||||
The :class:`BytesFeedParser`, imported from the :mod:`email.parser.FeedParser`
|
||||
module, provides an API that is conducive to incremental parsing of email messages,
|
||||
The :class:`BytesFeedParser`, imported from the :mod:`email.feedparser` module,
|
||||
provides an API that is conducive to incremental parsing of email messages,
|
||||
such as would be necessary when reading the text of an email message from a
|
||||
source that can block (such as a socket). The :class:`BytesFeedParser` can of
|
||||
course be used to parse an email message fully contained in a :term:`bytes-like
|
||||
|
|
@ -155,7 +155,7 @@ message body, instead setting the payload to the raw body.
|
|||
|
||||
Read all the data from the binary file-like object *fp*, parse the
|
||||
resulting bytes, and return the message object. *fp* must support
|
||||
both the :meth:`~io.IOBase.readline` and the :meth:`~io.TextIOBase.read`
|
||||
both the :meth:`~io.IOBase.readline` and the :meth:`~io.IOBase.read`
|
||||
methods.
|
||||
|
||||
The bytes contained in *fp* must be formatted as a block of :rfc:`5322`
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ Doc/extending/extending.rst
|
|||
Doc/library/ast.rst
|
||||
Doc/library/asyncio-extending.rst
|
||||
Doc/library/email.charset.rst
|
||||
Doc/library/email.parser.rst
|
||||
Doc/library/http.cookiejar.rst
|
||||
Doc/library/http.server.rst
|
||||
Doc/library/importlib.rst
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue