[New-bugs-announce] [issue3022] mailbox module, two small fixes

Guilherme Polo report at bugs.python.org
Sun Jun 1 23:29:33 CEST 2008

New submission from Guilherme Polo <ggpolo at gmail.com>:

While fixing the tkinter demos, I found some problems when moving from
mhlib to mailbox that are corrected in the attached patch.

The first fix:

-        for name, key_list in self.get_sequences():
+        for name, key_list in self.get_sequences().iteritems():

I'm not sure someone else used the module before, or at least
get_sequences() since it returns a dict and it just fails in the current

The second fix is about the .mh_sequences file format I found here, it
may have some lines with one space, or two, after its content which was
causing the get_sequences() to fail too.

components: Library (Lib)
files: mailbox_fixes.diff
keywords: patch, patch
messages: 67605
nosy: gpolo
severity: normal
status: open
title: mailbox module, two small fixes
versions: Python 2.6, Python 3.0
Added file: http://bugs.python.org/file10497/mailbox_fixes.diff

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list