summaryrefslogtreecommitdiff
path: root/src/mailman/commands/eml_help.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/commands/eml_help.py
parentcd3f84b301c2150fea5402129a2e7bc862fbb52b (diff)
parent01415190ab44e69a8f09a6411564a7cb288404e8 (diff)
downloadmailman-8d8ab1655b51e277570005b445d3b014afcfbc57.tar.gz
mailman-8d8ab1655b51e277570005b445d3b014afcfbc57.tar.zst
mailman-8d8ab1655b51e277570005b445d3b014afcfbc57.zip
Diffstat (limited to 'src/mailman/commands/eml_help.py')
-rw-r--r--src/mailman/commands/eml_help.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/mailman/commands/eml_help.py b/src/mailman/commands/eml_help.py
index 6fddb4ef3..a27717179 100644
--- a/src/mailman/commands/eml_help.py
+++ b/src/mailman/commands/eml_help.py
@@ -25,7 +25,7 @@ __all__ = [
]
-from zope.interface import implements
+from zope.interface import implementer
from mailman.config import config
from mailman.core.i18n import _
@@ -37,11 +37,10 @@ SPACE = ' '
+@implementer(IEmailCommand)
class Help:
"""The email 'help' command."""
- implements(IEmailCommand)
-
name = 'help'
argument_description = '[command]'
description = _('Get help about available email commands.')
@@ -58,14 +57,14 @@ class Help:
command = config.commands[command_name]
short_description = getattr(
command, 'short_description', _('n/a'))
- print(format.format(command.name, short_description),
+ print(format.format(command.name, short_description),
file=results)
return ContinueProcessing.yes
elif len(arguments) == 1:
command_name = arguments[0]
command = config.commands.get(command_name)
if command is None:
- print(_('$self.name: no such command: $command_name'),
+ print(_('$self.name: no such command: $command_name'),
file=results)
return ContinueProcessing.no
print('{0} {1}'.format(command.name, command.argument_description),