diff options
Diffstat (limited to 'Lib/email/parser.py')
| -rw-r--r-- | Lib/email/parser.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/email/parser.py b/Lib/email/parser.py index 752bf35a6e..ed512b114f 100644 --- a/Lib/email/parser.py +++ b/Lib/email/parser.py @@ -4,7 +4,8 @@ """A parser of RFC 2822 and MIME email messages.""" -__all__ = ['Parser', 'HeaderParser', 'BytesParser', 'BytesHeaderParser'] +__all__ = ['Parser', 'HeaderParser', 'BytesParser', 'BytesHeaderParser', + 'FeedParser', 'BytesFeedParser'] import warnings from io import StringIO, TextIOWrapper @@ -16,7 +17,7 @@ from email._policybase import compat32 class Parser: - def __init__(self, _class=Message, *, policy=compat32): + def __init__(self, _class=None, *, policy=compat32): """Parser of RFC 2822 and MIME email messages. Creates an in-memory object tree representing the email message, which |
