]> granicus.if.org Git - python/commitdiff
#19981: fix typo in email.mailbox docs. Patch by Claudiu Popa.
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 14 Dec 2013 10:42:29 +0000 (12:42 +0200)
committerEzio Melotti <ezio.melotti@gmail.com>
Sat, 14 Dec 2013 10:42:29 +0000 (12:42 +0200)
Doc/library/mailbox.rst

index dfd4ba707e4f4df54ca64dd78f25bc772ae67aa9..94fde14fdd90e7b2428646e52385667c43bbfd61 100644 (file)
@@ -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: