diff options
author | Charles-Axel Dein <charlesaxel.dein@gmail.com> | 2019-01-09 22:52:10 (GMT) |
---|---|---|
committer | Brian Curtin <brian@python.org> | 2019-01-09 22:52:10 (GMT) |
commit | e394ba32147f687b6bc7518d461f1d84211698e0 (patch) | |
tree | f753624af31f39821da8622da93e03a706c5caba /Doc | |
parent | d6acf17c05315cd34124d678057d9543adbad404 (diff) | |
download | cpython-e394ba32147f687b6bc7518d461f1d84211698e0.zip cpython-e394ba32147f687b6bc7518d461f1d84211698e0.tar.gz cpython-e394ba32147f687b6bc7518d461f1d84211698e0.tar.bz2 |
bpo-35404: Clarify how to import _structure in email.message doc (GH-10886)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/email.message.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/email.message.rst b/Doc/library/email.message.rst index 77b8099..f1806a0 100644 --- a/Doc/library/email.message.rst +++ b/Doc/library/email.message.rst @@ -487,7 +487,6 @@ message objects. from email import message_from_binary_file with open('../Lib/test/test_email/data/msg_16.txt', 'rb') as f: msg = message_from_binary_file(f) - from email.iterators import _structure .. doctest:: @@ -509,6 +508,7 @@ message objects. .. doctest:: + >>> from email.iterators import _structure >>> for part in msg.walk(): ... print(part.get_content_maintype() == 'multipart', ... part.is_multipart()) |