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

Skip to content

Commit 2fab358

Browse files
committed
Add missing FeedParser and BytesFeedParser to email.parser.__all__.
1 parent 5efee58 commit 2fab358

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/email/parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44

55
"""A parser of RFC 2822 and MIME email messages."""
66

7-
__all__ = ['Parser', 'HeaderParser', 'BytesParser', 'BytesHeaderParser']
7+
__all__ = ['Parser', 'HeaderParser', 'BytesParser', 'BytesHeaderParser',
8+
'FeedParser', 'BytesFeedParser']
89

910
import warnings
1011
from io import StringIO, TextIOWrapper

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+
- Added missing FeedParser and BytesFeedParser to email.parser.__all__.
284+
283285
- Issue #17431: Fix missing import of BytesFeedParser in email.parser.
284286

285287
- Issue #12921: http.server's send_error takes an explain argument to send more

0 commit comments

Comments
 (0)