Skip to content

Commit 9f336b9

Browse files
committed
Small issue on slide 34
When I run it, print msg.get_payload() returns a list: >>> print msg.get_payload() [<email.message.Message instance at 0x10124c680>, <email.message.Message instance at 0x10124c560>]
1 parent e4d2575 commit 9f336b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/presentations/session02.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ Once we have that, we can play with the resulting email object:
485485
'To', 'Mime-Version', 'X-Mailer']
486486
>>> msg['To']
487487
'demo@crisewing.com'
488-
>>> print msg.get_payload()
488+
>>> print msg.get_payload()[0]
489489
If you are reading this email, ...
490490

491491
.. class:: incremental center

0 commit comments

Comments
 (0)