diff options
author | R David Murray <rdmurray@bitdance.com> | 2013-03-15 20:42:29 -0400 |
---|---|---|
committer | R David Murray <rdmurray@bitdance.com> | 2013-03-15 20:42:29 -0400 |
commit | 8093d6f822133ec552aa32279cd53ea8caa8168e (patch) | |
tree | 8dc9f032a395746efea9cecd46c254723350e4fc | |
parent | ca99440c2c0749b73b7a44304186776089b776ba (diff) | |
parent | 612528d95db89c9e728db979c65ed7d774291ba1 (diff) | |
download | cpython-git-8093d6f822133ec552aa32279cd53ea8caa8168e.tar.gz |
Merge: #17431: Fix missing import of BytesFeedParser in email.parser.
-rw-r--r-- | Lib/email/parser.py | 2 | ||||
-rw-r--r-- | Lib/test/test_email/test_email.py | 4 | ||||
-rw-r--r-- | Misc/ACKS | 1 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
4 files changed, 8 insertions, 1 deletions
diff --git a/Lib/email/parser.py b/Lib/email/parser.py index 1aab012115..752bf35a6e 100644 --- a/Lib/email/parser.py +++ b/Lib/email/parser.py @@ -9,7 +9,7 @@ __all__ = ['Parser', 'HeaderParser', 'BytesParser', 'BytesHeaderParser'] import warnings from io import StringIO, TextIOWrapper -from email.feedparser import FeedParser +from email.feedparser import FeedParser, BytesFeedParser from email.message import Message from email._policybase import compat32 diff --git a/Lib/test/test_email/test_email.py b/Lib/test/test_email/test_email.py index 23f062fd80..eaed26f844 100644 --- a/Lib/test/test_email/test_email.py +++ b/Lib/test/test_email/test_email.py @@ -36,6 +36,10 @@ from email import quoprimime from test.support import unlink from test.test_email import openfile, TestEmailBase +# These imports are documented to work, but we are testing them using a +# different path, so we import them here just to make sure they are importable. +from email.parser import FeedParser, BytesFeedParser + NL = '\n' EMPTYSTRING = '' SPACE = ' ' @@ -172,6 +172,7 @@ Jan-Hein Bührman Dick Bulterman Bill Bumgarner Jimmy Burgett +Edmond Burnett Tommy Burnette Roger Burnham Alastair Burt @@ -193,6 +193,8 @@ Core and Builtins Library ------- +- Issue #17431: Fix missing import of BytesFeedParser in email.parser. + - Issue #1285086: Get rid of the refcounting hack and speed up urllib.parse.unquote() and urllib.parse.unquote_to_bytes(). |