From: Ezio Melotti Date: Sat, 14 Dec 2013 10:42:29 +0000 (+0200) Subject: #19981: fix typo in email.mailbox docs. Patch by Claudiu Popa. X-Git-Tag: v2.7.8~201 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91b88c8d8719a5230167c3e6cef0543001ac0d3a;p=python #19981: fix typo in email.mailbox docs. Patch by Claudiu Popa. --- diff --git a/Doc/library/mailbox.rst b/Doc/library/mailbox.rst index dfd4ba707e..94fde14fdd 100644 --- a/Doc/library/mailbox.rst +++ b/Doc/library/mailbox.rst @@ -1664,7 +1664,7 @@ programs, mail loss due to interruption of the program, or premature termination due to malformed messages in the mailbox:: import mailbox - import email.Errors + import email.errors list_names = ('python-list', 'python-dev', 'python-bugs') @@ -1674,7 +1674,7 @@ due to malformed messages in the mailbox:: for key in inbox.iterkeys(): try: message = inbox[key] - except email.Errors.MessageParseError: + except email.errors.MessageParseError: continue # The message is malformed. Just leave it. for name in list_names: