Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
52720c54
Commit
52720c54
authored
Apr 02, 2009
by
R. David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing iteritems() call to the for loop in mailbox.MH.get_message().
Fixes issue2625.
parent
e2942d07
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
Lib/mailbox.py
Lib/mailbox.py
+1
-1
Lib/test/test_mailbox.py
Lib/test/test_mailbox.py
+6
-0
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/mailbox.py
View file @
52720c54
...
...
@@ -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
...
...
Lib/test/test_mailbox.py
View file @
52720c54
...
...
@@ -936,6 +936,12 @@ class TestMH(TestMailbox):
self._box.remove(key1)
self.assert_(self._box.get_sequences() == {'flagged':[key0]})
def test_issue2625(self):
msg0 = mailbox.MHMessage(self._template % 0)
msg0.add_sequence('foo')
key0 = self._box.add(msg0)
refmsg0 = self._box.get_message(key0)
def test_pack(self):
# Pack the contents of the mailbox
msg0 = mailbox.MHMessage(self._template % 0)
...
...
Misc/NEWS
View file @
52720c54
...
...
@@ -202,6 +202,9 @@ Core and Builtins
Library
-------
- Issue 2625: added missing iteritems() call to the for loop in
mailbox.MH.get_message().
- Issue 5585: Add the ability to call an initializer to mulitiprocessing.manager
so that users can install custonm handlers/etc.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment