Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 982720c

Browse filesBrowse files
Merge pull request #1 from ZeroIntensity/moved
Update email.message.rst
2 parents 748c958 + 24b245a commit 982720c
Copy full SHA for 982720c

File tree

Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+7
-7
lines changed

‎Doc/library/email.contentmanager.rst

Copy file name to clipboardExpand all lines: Doc/library/email.contentmanager.rst
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,13 @@ Currently the email package provides only one concrete content manager,
191191
(distinguished from strings by having a ``name`` attribute), add the
192192
headers to *msg*.
193193

194+
Note that this method will append a newline character to the end of strings,
195+
if it wasn't passed already. For example, the following are equivalent ::
196+
197+
msg = EmailMessage()
198+
msg.set_content("hello")
199+
msg.set_content("hello\n")
200+
194201

195202
.. rubric:: Footnotes
196203

‎Doc/library/email.message.rst

Copy file name to clipboardExpand all lines: Doc/library/email.message.rst
-7Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -612,13 +612,6 @@ message objects.
612612
*content_manager* is not specified, use the ``content_manager`` specified
613613
by the current :mod:`~email.policy`.
614614

615-
Note that this method will append a newline character to the end of the
616-
content, if it wasn't passed already. For example, the following are equivalent ::
617-
618-
msg = EmailMessage()
619-
msg.set_content("hello")
620-
msg.set_content("hello\n")
621-
622615

623616
.. method:: make_related(boundary=None)
624617

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.