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

Skip to content

Commit df75fee

Browse files
committed
#22508: Drop email __version__ string. It no longer means anything.
A debian code search (by Tshepang Lekhonkhobe) turned up only one package checking email.__version__...and it was the 2.7-only mailman package. Since Barry approves this change, it seems safe enough to make it...
1 parent 4d2aba3 commit df75fee

3 files changed

Lines changed: 12 additions & 2 deletions

File tree

Doc/whatsnew/3.5.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,14 @@ Deprecated features
355355
* None yet.
356356

357357

358+
Removed
359+
=======
360+
361+
* The ``__version__`` attribute has been dropped from the email package. The
362+
email code hasn't been shipped separately from the stdlib for a long time,
363+
and the ``__version__`` string was not updated in the last few releases.
364+
365+
358366
Porting to Python 3.5
359367
=====================
360368

Lib/email/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
"""A package for parsing, handling, and generating email messages."""
66

7-
__version__ = '5.1.0'
8-
97
__all__ = [
108
'base64mime',
119
'charset',

Misc/NEWS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,10 @@ Core and Builtins
159159
Library
160160
-------
161161

162+
- Issue #22508: The email.__version__ variable has been removed; the email
163+
code is no longer shipped separately from the stdlib, and __version__
164+
hasn't been updated in several releases.
165+
162166
- Issue #20076: Added non derived UTF-8 aliases to locale aliases table.
163167

164168
- Issue #20079: Added locales supported in glibc 2.18 to locale alias table.

0 commit comments

Comments
 (0)