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

(cherry picked from commit a747c3a5ed)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
This commit is contained in:
Miss Islington (bot) 2019-05-31 13:26:01 -07:00 committed by GitHub
parent a6dc5d4e1c
commit 464c1ec65a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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 new API the functionality is provided by the *cte* parameter of
the :meth:`~email.message.EmailMessage.set_content` method. 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. The remaining text in this section is the original documentation of the module.
When creating :class:`~email.message.Message` objects from scratch, you often When creating :class:`~email.message.Message` objects from scratch, you often