Kaydet (Commit) 7a139c50 authored tarafından R David Murray's avatar R David Murray

#26176: fix usage of Address constructor in email examples.

Patch by Nathan Harold.
üst 537ad7ad
...@@ -9,9 +9,9 @@ from email.utils import make_msgid ...@@ -9,9 +9,9 @@ from email.utils import make_msgid
# Create the base text message. # Create the base text message.
msg = EmailMessage() msg = EmailMessage()
msg['Subject'] = "Ayons asperges pour le déjeuner" msg['Subject'] = "Ayons asperges pour le déjeuner"
msg['From'] = Address("Pepé Le Pew", "pepe@example.com") msg['From'] = Address("Pepé Le Pew", "pepe", "example.com")
msg['To'] = (Address("Penelope Pussycat", "penelope@example.com"), msg['To'] = (Address("Penelope Pussycat", "penelope", "example.com"),
Address("Fabrette Pussycat", "fabrette@example.com")) Address("Fabrette Pussycat", "fabrette", "example.com"))
msg.set_content("""\ msg.set_content("""\
Salut! Salut!
......
...@@ -61,7 +61,7 @@ way we could process it: ...@@ -61,7 +61,7 @@ way we could process it:
Up to the prompt, the output from the above is:: Up to the prompt, the output from the above is::
To: Penelope Pussycat <"penelope@example.com">, Fabrette Pussycat <"fabrette@example.com"> To: Penelope Pussycat <penelope@example.com>, Fabrette Pussycat <fabrette@example.com>
From: Pepé Le Pew <pepe@example.com> From: Pepé Le Pew <pepe@example.com>
Subject: Ayons asperges pour le déjeuner Subject: Ayons asperges pour le déjeuner
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment