| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,8 +48,8 @@ methods. | |||
| 48 | 48 | FeedParser API | |
| 49 | 49 | ^^^^^^^^^^^^^^ | |
| 50 | 50 | ||
| 51 | - The :class:`BytesFeedParser`, imported from the :mod:`email.parser.FeedParser` | ||
| 52 | - module, provides an API that is conducive to incremental parsing of email messages, | ||
| 51 | + The :class:`BytesFeedParser`, imported from the :mod:`email.feedparser` module, | ||
| 52 | + provides an API that is conducive to incremental parsing of email messages, | ||
| 53 | 53 | such as would be necessary when reading the text of an email message from a | |
| 54 | 54 | source that can block (such as a socket). The :class:`BytesFeedParser` can of | |
| 55 | 55 | 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. | |||
| 155 | 155 | ||
| 156 | 156 | Read all the data from the binary file-like object *fp*, parse the | |
| 157 | 157 | resulting bytes, and return the message object. *fp* must support | |
| 158 | - both the :meth:`~io.IOBase.readline` and the :meth:`~io.TextIOBase.read` | ||
| 158 | + both the :meth:`~io.IOBase.readline` and the :meth:`~io.IOBase.read` | ||
| 159 | 159 | methods. | |
| 160 | 160 | ||
| 161 | 161 | The bytes contained in *fp* must be formatted as a block of :rfc:`5322` | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,6 +15,7 @@ Doc/extending/extending.rst | |||
| 15 | 15 | Doc/library/ast.rst | |
| 16 | 16 | Doc/library/asyncio-extending.rst | |
| 17 | 17 | Doc/library/email.charset.rst | |
| 18 | + Doc/library/email.parser.rst | ||
| 18 | 19 | Doc/library/http.cookiejar.rst | |
| 19 | 20 | Doc/library/http.server.rst | |
| 20 | 21 | Doc/library/importlib.rst | |
| Back | FazBrowse Home | New Git URL |
0 commit comments