diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-12-14 10:43:08 (GMT) |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-12-14 10:43:08 (GMT) |
commit | 66f8518acb5b5ff87c754f6b96e4612724ee8764 (patch) | |
tree | a5c6b1d913583762bee4da70e340624438411832 /Doc/library/mailbox.rst | |
parent | 3c2a178af2b4908fbf0a59582e52fe40798eb7ea (diff) | |
parent | 956040a7cce05aada13e833478273485f7f74722 (diff) | |
download | cpython-66f8518acb5b5ff87c754f6b96e4612724ee8764.zip cpython-66f8518acb5b5ff87c754f6b96e4612724ee8764.tar.gz cpython-66f8518acb5b5ff87c754f6b96e4612724ee8764.tar.bz2 |
#19981: merge with 3.3.
Diffstat (limited to 'Doc/library/mailbox.rst')
-rw-r--r-- | Doc/library/mailbox.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/mailbox.rst b/Doc/library/mailbox.rst index d668a6ea..0478ed1 100644 --- a/Doc/library/mailbox.rst +++ b/Doc/library/mailbox.rst @@ -1550,7 +1550,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') @@ -1560,7 +1560,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: |