Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5efee58

Browse files
committed
Merge: #17431: Fix missing import of BytesFeedParser in email.parser.
2 parents b0dc5c3 + 8093d6f commit 5efee58

4 files changed

Lines changed: 8 additions & 1 deletion

File tree

Lib/email/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import warnings
1010
from io import StringIO, TextIOWrapper
1111

12-
from email.feedparser import FeedParser
12+
from email.feedparser import FeedParser, BytesFeedParser
1313
from email.message import Message
1414
from email._policybase import compat32
1515

Lib/test/test_email/test_email.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@
3636
from test.support import unlink
3737
from test.test_email import openfile, TestEmailBase
3838

39+
# These imports are documented to work, but we are testing them using a
40+
# different path, so we import them here just to make sure they are importable.
41+
from email.parser import FeedParser, BytesFeedParser
42+
3943
NL = '\n'
4044
EMPTYSTRING = ''
4145
SPACE = ' '

Misc/ACKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ Jan-Hein Bührman
173173
Dick Bulterman
174174
Bill Bumgarner
175175
Jimmy Burgett
176+
Edmond Burnett
176177
Tommy Burnette
177178
Roger Burnham
178179
Alastair Burt

Misc/NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ Core and Builtins
280280
Library
281281
-------
282282

283+
- Issue #17431: Fix missing import of BytesFeedParser in email.parser.
284+
283285
- Issue #12921: http.server's send_error takes an explain argument to send more
284286
information in response. Patch contributed by Karl.
285287

0 commit comments

Comments
 (0)