Commit 956040a7 authored by Ezio Melotti's avatar Ezio Melotti

#19981: fix typo in email.mailbox docs. Patch by Claudiu Popa.

parent fc06999e
...@@ -1550,7 +1550,7 @@ programs, mail loss due to interruption of the program, or premature termination ...@@ -1550,7 +1550,7 @@ programs, mail loss due to interruption of the program, or premature termination
due to malformed messages in the mailbox:: due to malformed messages in the mailbox::
import mailbox import mailbox
import email.Errors import email.errors
list_names = ('python-list', 'python-dev', 'python-bugs') list_names = ('python-list', 'python-dev', 'python-bugs')
...@@ -1560,7 +1560,7 @@ due to malformed messages in the mailbox:: ...@@ -1560,7 +1560,7 @@ due to malformed messages in the mailbox::
for key in inbox.iterkeys(): for key in inbox.iterkeys():
try: try:
message = inbox[key] message = inbox[key]
except email.Errors.MessageParseError: except email.errors.MessageParseError:
continue # The message is malformed. Just leave it. continue # The message is malformed. Just leave it.
for name in list_names: for name in list_names:
......
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