summaryrefslogtreecommitdiff
path: root/src/mailman/runners/command.py
diff options
context:
space:
mode:
authorBarry Warsaw2012-07-06 21:08:41 -0400
committerBarry Warsaw2012-07-06 21:08:41 -0400
commit8d8ab1655b51e277570005b445d3b014afcfbc57 (patch)
tree6ba0147d975636e129a787c9dfa64dae8cffae89 /src/mailman/runners/command.py
parentcd3f84b301c2150fea5402129a2e7bc862fbb52b (diff)
parent01415190ab44e69a8f09a6411564a7cb288404e8 (diff)
downloadmailman-8d8ab1655b51e277570005b445d3b014afcfbc57.tar.gz
mailman-8d8ab1655b51e277570005b445d3b014afcfbc57.tar.zst
mailman-8d8ab1655b51e277570005b445d3b014afcfbc57.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