[Python-checkins] bpo-15115: Document deprecation of email.encoders in Python 3 (GH-5354)

Cheryl Sabella webhook-mailer at python.org
Fri May 31 16:19:02 EDT 2019


https://github.com/python/cpython/commit/a747c3a5edf21fa5670bc30f5e1d804de89ebf62
commit: a747c3a5edf21fa5670bc30f5e1d804de89ebf62
branch: master
author: Cheryl Sabella <cheryl.sabella at gmail.com>
committer: GitHub <noreply at github.com>
date: 2019-05-31T16:18:41-04:00
summary:

bpo-15115: Document deprecation of email.encoders in Python 3 (GH-5354)

files:
M Doc/library/email.encoders.rst

diff --git a/Doc/library/email.encoders.rst b/Doc/library/email.encoders.rst
index 70bf61323c39..e4752a5edf84 100644
--- a/Doc/library/email.encoders.rst
+++ b/Doc/library/email.encoders.rst
@@ -12,6 +12,11 @@ This module is part of the legacy (``Compat32``) email API.  In the
 new API the functionality is provided by the *cte* parameter of
 the :meth:`~email.message.EmailMessage.set_content` method.
 
+This module is deprecated in Python 3.  The functions provided here
+should not be called explicitly since the :class:`~email.mime.text.MIMEText`
+class sets the content type and CTE header using the *_subtype* and *_charset*
+values passed during the instaniation of that class.
+
 The remaining text in this section is the original documentation of the module.
 
 When creating :class:`~email.message.Message` objects from scratch, you often



More information about the Python-checkins mailing list