[Python-checkins] bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (GH-7631) (#7634)

R. David Murray webhook-mailer at python.org
Mon Jun 11 12:11:55 EDT 2018


https://github.com/python/cpython/commit/bbbc3d99dca41bc95a9402d702f6ab833d3003c7
commit: bbbc3d99dca41bc95a9402d702f6ab833d3003c7
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: R. David Murray <rdmurray at bitdance.com>
date: 2018-06-11T12:11:52-04:00
summary:

bpo-30820: Remove incorrect docs for email.contentmanager.raw_data_manager (GH-7631) (#7634)

The docs claimed that a list of EmailMessage objects could be
passed to set_content(), but this was never implemented.
(cherry picked from commit 2c071cebe67f517f191f4074757a79b0f597d886)

Co-authored-by: Zackery Spytz <zspytz at gmail.com>

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

diff --git a/Doc/library/email.contentmanager.rst b/Doc/library/email.contentmanager.rst
index f56836ae2d27..e09c7c0e402b 100644
--- a/Doc/library/email.contentmanager.rst
+++ b/Doc/library/email.contentmanager.rst
@@ -126,9 +126,6 @@ Currently the email package provides only one concrete content manager,
                set_content(msg, <'EmailMessage'>, cte=None, \
                            disposition=None, filename=None, cid=None, \
                            params=None, headers=None)
-               set_content(msg, <'list'>, subtype='mixed', \
-                           disposition=None, filename=None, cid=None, \
-                           params=None, headers=None)
 
        Add headers and payload to *msg*:
 
@@ -144,12 +141,6 @@ Currently the email package provides only one concrete content manager,
              specified or ``rfc822`` if it is not.  If *subtype* is
              ``partial``, raise an error (``bytes`` objects must be used to
              construct ``message/partial`` parts).
-           * For *<'list'>*, which should be a list of
-             :class:`~email.message.EmailMessage` objects, set the ``maintype``
-             to ``multipart``, and the ``subtype`` to *subtype* if it is
-             specified, and ``mixed`` if it is not.  If the message parts in
-             the *<'list'>* have :mailheader:`MIME-Version` headers, remove
-             them.
 
        If *charset* is provided (which is valid only for ``str``), encode the
        string to bytes using the specified character set.  The default is



More information about the Python-checkins mailing list