Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
1b6c724d
Commit
1b6c724d
authored
Mar 16, 2012
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#11686: add missing entries to email __all__ lists.
Original patch by Steffen Daode Nurpmeso
parent
41914349
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
11 deletions
+9
-11
Lib/email/__init__.py
Lib/email/__init__.py
+1
-0
Lib/email/feedparser.py
Lib/email/feedparser.py
+1
-1
Lib/email/generator.py
Lib/email/generator.py
+1
-1
Lib/email/parser.py
Lib/email/parser.py
+1
-1
Lib/email/test/test_email.py
Lib/email/test/test_email.py
+5
-8
No files found.
Lib/email/__init__.py
View file @
1b6c724d
...
...
@@ -11,6 +11,7 @@ __all__ = [
'charset'
,
'encoders'
,
'errors'
,
'feedparser'
,
'generator'
,
'header'
,
'iterators'
,
...
...
Lib/email/feedparser.py
View file @
1b6c724d
...
...
@@ -19,7 +19,7 @@ the current message. Defects are just instances that live on the message
object's .defects attribute.
"""
__all__
=
[
'FeedParser'
]
__all__
=
[
'FeedParser'
,
'BytesFeedParser'
]
import
re
...
...
Lib/email/generator.py
View file @
1b6c724d
...
...
@@ -4,7 +4,7 @@
"""Classes to generate plain text from a message object tree."""
__all__
=
[
'Generator'
,
'DecodedGenerator'
]
__all__
=
[
'Generator'
,
'DecodedGenerator'
,
'BytesGenerator'
]
import
re
import
sys
...
...
Lib/email/parser.py
View file @
1b6c724d
...
...
@@ -4,7 +4,7 @@
"""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
View file @
1b6c724d
...
...
@@ -2518,14 +2518,11 @@ class TestMiscellaneous(TestEmailBase):
def
test__all__
(
self
):
module
=
__import__
(
'email'
)
# Can't use sorted() here due to Python 2.3 compatibility
all
=
module
.
__all__
[:]
all
.
sort
()
self
.
assertEqual
(
all
,
[
'base64mime'
,
'charset'
,
'encoders'
,
'errors'
,
'generator'
,
'header'
,
'iterators'
,
'message'
,
'message_from_binary_file'
,
'message_from_bytes'
,
'message_from_file'
,
'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'
,
'quoprimime'
,
'utils'
,
])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment