diff options
| author | Barry Warsaw | 2014-12-11 21:41:29 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-11 21:41:29 -0500 |
| commit | c86eb81a8e7793c86115e318ad10dda2284f332a (patch) | |
| tree | 87b87b2fbc69d52145d95fd3cabcf75e785c1d0b /src/mailman/rest/moderation.py | |
| parent | fe7d286db796630b3bef326bd5106591940c0b5f (diff) | |
| download | mailman-c86eb81a8e7793c86115e318ad10dda2284f332a.tar.gz mailman-c86eb81a8e7793c86115e318ad10dda2284f332a.tar.zst mailman-c86eb81a8e7793c86115e318ad10dda2284f332a.zip | |
Diffstat (limited to 'src/mailman/rest/moderation.py')
| -rw-r--r-- | src/mailman/rest/moderation.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
