This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: mailbox.MH.get_message() treats result of get_sequences() as list of tuples
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.0, Python 3.1, Python 2.7, Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: hcs, r.david.murray
Priority: normal Keywords: easy, patch

Created on 2008-04-12 17:58 by hcs, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue2625.patch r.david.murray, 2009-03-29 20:24 test and patch
Messages (3)
msg65408 - (view) Author: Christer Sjöholm (hcs) Date: 2008-04-12 17:58
in mailbox.MH.get_message() there is a loop over the mailbox sequences
on row 894 in Python 2.5.2
  for name, key_list in self.get_sequences():
but mailbox.MH.get_sequences() returns a dict so it should be
  for name, key_list in self.get_sequences().iteritems():
msg84428 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2009-03-29 20:24
Patch with test attached.
msg85203 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2009-04-02 14:19
Fixed in 71046.
History
Date User Action Args
2022-04-11 14:56:33adminsetgithub: 46877
2009-04-02 14:19:22r.david.murraysetstatus: open -> closed
resolution: fixed
messages: + msg85203

stage: patch review -> resolved
2009-03-29 20:24:21r.david.murraysetfiles: + issue2625.patch

versions: + Python 2.6, Python 3.1, Python 2.7, - Python 2.5
keywords: + easy, patch
nosy: + r.david.murray

messages: + msg84428
stage: patch review
2008-04-12 17:58:50hcscreate