summaryrefslogtreecommitdiffstats
path: root/Doc/includes
diff options
context:
space:
mode:
authorR David Murray <rdmurray@bitdance.com>2016-07-10 18:00:51 (GMT)
committerR David Murray <rdmurray@bitdance.com>2016-07-10 18:00:51 (GMT)
commita7425c5e37614bedad2b515d017c8dfe6ae0e7af (patch)
treeb61b1505b47a13c39caf4577b99ba3ab177e502e /Doc/includes
parent9bdb1edf35a5ee96f89973f55c52bb7da86dbd9e (diff)
parent7a139c50dbf98f3f064d0028aeca76952d8785db (diff)
downloadcpython-a7425c5e37614bedad2b515d017c8dfe6ae0e7af.zip
cpython-a7425c5e37614bedad2b515d017c8dfe6ae0e7af.tar.gz
cpython-a7425c5e37614bedad2b515d017c8dfe6ae0e7af.tar.bz2
Merge: #26176: fix usage of Address constructor in email examples.
Diffstat (limited to 'Doc/includes')
-rw-r--r--Doc/includes/email-alternative-new-api.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/includes/email-alternative-new-api.py b/Doc/includes/email-alternative-new-api.py
index c1255a6..321f727 100644
--- a/Doc/includes/email-alternative-new-api.py
+++ b/Doc/includes/email-alternative-new-api.py
@@ -9,9 +9,9 @@ from email.utils import make_msgid
# Create the base text message.
msg = EmailMessage()
msg['Subject'] = "Ayons asperges pour le déjeuner"
-msg['From'] = Address("Pepé Le Pew", "pepe@example.com")
-msg['To'] = (Address("Penelope Pussycat", "penelope@example.com"),
- Address("Fabrette Pussycat", "fabrette@example.com"))
+msg['From'] = Address("Pepé Le Pew", "pepe", "example.com")
+msg['To'] = (Address("Penelope Pussycat", "penelope", "example.com"),
+ Address("Fabrette Pussycat", "fabrette", "example.com"))
msg.set_content("""\
Salut!