Skip to content

Commit e394ba3

Browse files
charlaxbriancurtin
authored andcommitted
bpo-35404: Clarify how to import _structure in email.message doc (GH-10886)
1 parent d6acf17 commit e394ba3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/email.message.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,6 @@ message objects.
487487
from email import message_from_binary_file
488488
with open('../Lib/test/test_email/data/msg_16.txt', 'rb') as f:
489489
msg = message_from_binary_file(f)
490-
from email.iterators import _structure
491490

492491
.. doctest::
493492

@@ -509,6 +508,7 @@ message objects.
509508

510509
.. doctest::
511510

511+
>>> from email.iterators import _structure
512512
>>> for part in msg.walk():
513513
... print(part.get_content_maintype() == 'multipart',
514514
... part.is_multipart())

0 commit comments

Comments
 (0)