[Python-checkins] bpo-36261: Improve example of the preamble field in email docs (GH-14751)

Miss Islington (bot) webhook-mailer at python.org
Sun Jul 14 03:51:54 EDT 2019


https://github.com/python/cpython/commit/fb58024688050385ed2fd93caf02a5807d1ccfed
commit: fb58024688050385ed2fd93caf02a5807d1ccfed
branch: 3.7
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2019-07-14T00:51:49-07:00
summary:

bpo-36261: Improve example of the preamble field in email docs (GH-14751)

(cherry picked from commit 8efade91b12a13102a09a3856179021e579da5e9)

Co-authored-by: Carl Bordum Hansen <carl at bordum.dk>

files:
M Doc/includes/email-mime.py

diff --git a/Doc/includes/email-mime.py b/Doc/includes/email-mime.py
index c610242f11f8..6af2be0b08a4 100644
--- a/Doc/includes/email-mime.py
+++ b/Doc/includes/email-mime.py
@@ -14,7 +14,7 @@
 # family = the list of all recipients' email addresses
 msg['From'] = me
 msg['To'] = ', '.join(family)
-msg.preamble = 'Our family reunion'
+msg.preamble = 'You will not see this in a MIME-aware mail reader.\n'
 
 # Open the files in binary mode.  Use imghdr to figure out the
 # MIME subtype for each specific image.



More information about the Python-checkins mailing list