summaryrefslogtreecommitdiff
path: root/src/mailman/runners/command.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-04-25 22:08:22 -0400
committerBarry Warsaw2012-04-25 22:08:22 -0400
commit658fad42b04420962e6ac478247411ee77483d93 (patch)
treedb16a22376b7191910bf674304c847850169144f /src/mailman/runners/command.py
parent4488631dff02731ff03f2fef01ee27bbd944812b (diff)
downloadmailman-658fad42b04420962e6ac478247411ee77483d93.tar.gz
mailman-658fad42b04420962e6ac478247411ee77483d93.tar.zst
mailman-658fad42b04420962e6ac478247411ee77483d93.zip
Diffstat (limited to 'src/mailman/runners/command.py')
-rw-r--r--src/mailman/runners/command.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mailman/runners/command.py b/src/mailman/runners/command.py
index ac611ed3a..6501474a3 100644
--- a/src/mailman/runners/command.py
+++ b/src/mailman/runners/command.py
@@ -38,7 +38,7 @@ from email.errors import HeaderParseError
from email.header import decode_header, make_header
from email.iterators import typed_subpart_iterator
from zope.component import getUtility
-from zope.interface import implements
+from zope.interface import implementer
from mailman.config import config
from mailman.core.i18n import _
@@ -117,7 +117,7 @@ class CommandFinder:
continue
# Ensure that all the parts are unicodes. Since we only accept
# ASCII commands and arguments, ignore anything else.
- parts = [(part
+ parts = [(part
if isinstance(part, unicode)
else part.decode('ascii', 'ignore'))
for part in parts]
@@ -125,11 +125,10 @@ class CommandFinder:
+@implementer(IEmailResults)
class Results:
"""The email command results."""
- implements(IEmailResults)
-
def __init__(self, charset='us-ascii'):
self._output = StringIO()
self.charset = charset