Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4191434 commit 1b6c724Copy full SHA for 1b6c724
5 files changed
Lib/email/__init__.py
@@ -11,6 +11,7 @@
11
'charset',
12
'encoders',
13
'errors',
14
+ 'feedparser',
15
'generator',
16
'header',
17
'iterators',
Lib/email/feedparser.py
@@ -19,7 +19,7 @@
19
object's .defects attribute.
20
"""
21
22
-__all__ = ['FeedParser']
+__all__ = ['FeedParser', 'BytesFeedParser']
23
24
import re
25
Lib/email/generator.py
@@ -4,7 +4,7 @@
4
5
"""Classes to generate plain text from a message object tree."""
6
7
-__all__ = ['Generator', 'DecodedGenerator']
+__all__ = ['Generator', 'DecodedGenerator', 'BytesGenerator']
8
9
10
import sys
Lib/email/parser.py
"""A parser of RFC 2822 and MIME email messages."""
-__all__ = ['Parser', 'HeaderParser']
+__all__ = ['Parser', 'HeaderParser', 'BytesParser']
import warnings
from io import StringIO, TextIOWrapper
Lib/email/test/test_email.py
@@ -2518,14 +2518,11 @@ class MyMessage(Message):
2518
2519
def test__all__(self):
2520
module = __import__('email')
2521
- # Can't use sorted() here due to Python 2.3 compatibility
2522
- all = module.__all__[:]
2523
- all.sort()
2524
- self.assertEqual(all, [
2525
- 'base64mime', 'charset', 'encoders', 'errors', 'generator',
2526
- 'header', 'iterators', 'message', 'message_from_binary_file',
2527
- 'message_from_bytes', 'message_from_file',
2528
- 'message_from_string', 'mime', 'parser',
+ self.assertEqual(sorted(module.__all__), [
+ 'base64mime', 'charset', 'encoders', 'errors', 'feedparser',
+ 'generator', 'header', 'iterators', 'message',
+ 'message_from_binary_file', 'message_from_bytes',
+ 'message_from_file', 'message_from_string', 'mime', 'parser',
2529
'quoprimime', 'utils',
2530
])
2531
0 commit comments