summaryrefslogtreecommitdiff
path: root/src/mailman/rules/approved.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/rules/approved.py')
-rw-r--r--src/mailman/rules/approved.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/rules/approved.py b/src/mailman/rules/approved.py
index 3e2b7bc83..1f4fc1369 100644
--- a/src/mailman/rules/approved.py
+++ b/src/mailman/rules/approved.py
@@ -29,7 +29,7 @@ import re
from email.iterators import typed_subpart_iterator
from flufl.password import verify
-from zope.interface import implements
+from zope.interface import implementer
from mailman.core.i18n import _
from mailman.interfaces.rules import IRule
@@ -45,9 +45,9 @@ HEADERS = [
+@implementer(IRule)
class Approved:
"""Look for moderator pre-approval."""
- implements(IRule)
name = 'approved'
description = _('The message has a matching Approve or Approved header.')
@@ -119,7 +119,7 @@ class Approved:
else:
for header in HEADERS:
del msg[header]
- return (password is not missing and
+ return (password is not missing and
verify(mlist.moderator_password, password))