summaryrefslogtreecommitdiff
path: root/src/mailman/runners/command.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-06-03 13:21:38 -0400
committerBarry Warsaw2012-06-03 13:21:38 -0400
commite1aa901fbdcc6d7fbb495a1d9ca1a5079008164a (patch)
tree9146fed874216bfb88707848568d7598ec2e8522 /src/mailman/runners/command.py
parent847409ba333375bd9c168e28f15748e58970404f (diff)
parent3c8a07fc76176a8ea89ee6b73aef571d0b2c81ed (diff)
downloadmailman-e1aa901fbdcc6d7fbb495a1d9ca1a5079008164a.tar.gz
mailman-e1aa901fbdcc6d7fbb495a1d9ca1a5079008164a.tar.zst
mailman-e1aa901fbdcc6d7fbb495a1d9ca1a5079008164a.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