mirror of
https://github.com/python/cpython.git
synced 2025-07-29 14:15:07 +00:00
Add missing iteritems() call to the for loop in mailbox.MH.get_message().
Fixes issue2625.
This commit is contained in:
parent
e2942d073d
commit
52720c5455
3 changed files with 10 additions and 1 deletions
|
@ -911,7 +911,7 @@ class MH(Mailbox):
|
|||
_unlock_file(f)
|
||||
finally:
|
||||
f.close()
|
||||
for name, key_list in self.get_sequences():
|
||||
for name, key_list in self.get_sequences().iteritems():
|
||||
if key in key_list:
|
||||
msg.add_sequence(name)
|
||||
return msg
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue