diff -r 358a35471f9f Doc/library/mailbox.rst --- a/Doc/library/mailbox.rst Fri Dec 13 20:53:26 2013 -0500 +++ b/Doc/library/mailbox.rst Sat Dec 14 11:45:31 2013 +0200 @@ -1550,7 +1550,7 @@ due to malformed messages in the mailbox:: import mailbox - import email.Errors + import email.errors list_names = ('python-list', 'python-dev', 'python-bugs') @@ -1560,7 +1560,7 @@ 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: