Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Doc/library/email.contentmanager.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,13 @@ Currently the email package provides only one concrete content manager,
(distinguished from strings by having a ``name`` attribute), add the
headers to *msg*.

Note that this method will append a newline character to the end of strings,
if it wasn't passed already. For example, the following are equivalent ::

msg = EmailMessage()
msg.set_content("hello")
msg.set_content("hello\n")


.. rubric:: Footnotes

Expand Down
7 changes: 0 additions & 7 deletions Doc/library/email.message.rst
Original file line number Diff line number Diff line change
Expand Up @@ -612,13 +612,6 @@ message objects.
*content_manager* is not specified, use the ``content_manager`` specified
by the current :mod:`~email.policy`.

Note that this method will append a newline character to the end of the
content, if it wasn't passed already. For example, the following are equivalent ::

msg = EmailMessage()
msg.set_content("hello")
msg.set_content("hello\n")


.. method:: make_related(boundary=None)

Expand Down