From c86eb81a8e7793c86115e318ad10dda2284f332a Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 11 Dec 2014 21:41:29 -0500 Subject: Checkpointing more fixes. --- src/mailman/rest/moderation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mailman/rest/moderation.py') diff --git a/src/mailman/rest/moderation.py b/src/mailman/rest/moderation.py index 0bdc50688..4373067ec 100644 --- a/src/mailman/rest/moderation.py +++ b/src/mailman/rest/moderation.py @@ -88,7 +88,7 @@ class _HeldMessageBase(_ModerationBase): # resource. Others we can drop. Since we're mutating the dictionary, # we need to make a copy of the keys. When you port this to Python 3, # you'll need to list()-ify the .keys() dictionary view. - for key in resource.keys(): + for key in list(resource): if key in ('_mod_subject', '_mod_hold_date', '_mod_reason', '_mod_sender', '_mod_message_id'): resource[key[5:]] = resource.pop(key) -- cgit v1.2.3-70-g09d2