]> granicus.if.org Git - python/commitdiff
#17431: Fix missing import of BytesFeedParser in email.parser.
authorR David Murray <rdmurray@bitdance.com>
Sat, 16 Mar 2013 00:38:15 +0000 (20:38 -0400)
committerR David Murray <rdmurray@bitdance.com>
Sat, 16 Mar 2013 00:38:15 +0000 (20:38 -0400)
Initial patch contributed by Edmond Burnett.

Lib/email/parser.py
Lib/email/test/test_email.py
Misc/ACKS
Misc/NEWS

index 1c931ea9dea95d941ba7309a6bb8af122678243b..4e9673282e1fc31812d87055364df27baae64107 100644 (file)
@@ -9,7 +9,7 @@ __all__ = ['Parser', 'HeaderParser', 'BytesParser']
 import warnings
 from io import StringIO, TextIOWrapper
 
-from email.feedparser import FeedParser
+from email.feedparser import FeedParser, BytesFeedParser
 from email.message import Message
 
 
index a1ceb7f1b54cd1e0c4f3bb9ae5c512522a1dacbd..6fddd2b4fc547eef1b282d85a985f83859dbef1b 100644 (file)
@@ -38,6 +38,10 @@ from email import quoprimime
 from test.support import findfile, run_unittest, unlink
 from email.test import __file__ as landmark
 
+# 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 = ''
index f02ef234ce27a3400e7cf30abf614bd5e5efd2d4..d8533c4351b206ba504b24e524dc0bc593d8dad5 100644 (file)
--- a/Misc/ACKS
+++ b/Misc/ACKS
@@ -156,6 +156,7 @@ Erik de Bueger
 Dick Bulterman
 Bill Bumgarner
 Jimmy Burgett
+Edmond Burnett
 Tommy Burnette
 Roger Burnham
 Alastair Burt
index fa2f1423f2bcd20552120c334a748c67c1d39ef3..cac3957fe7899f5ee1610bd22ebf33131ff9e087 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -233,6 +233,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().