mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
#17431: Fix missing import of BytesFeedParser in email.parser.
Initial patch contributed by Edmond Burnett.
This commit is contained in:
parent
f3f0681794
commit
612528d95d
4 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = ''
|
||||
|
|
|
|||
|
|
@ -156,6 +156,7 @@ Erik de Bueger
|
|||
Dick Bulterman
|
||||
Bill Bumgarner
|
||||
Jimmy Burgett
|
||||
Edmond Burnett
|
||||
Tommy Burnette
|
||||
Roger Burnham
|
||||
Alastair Burt
|
||||
|
|
|
|||
|
|
@ -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().
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue