summaryrefslogtreecommitdiff
path: root/src/mailman/commands/eml_help.py
diff options
context:
space:
mode:
authorBarry Warsaw2016-03-24 15:12:45 -0400
committerBarry Warsaw2016-03-24 15:12:45 -0400
commitd964be9f9a141772bb0538f7bc7ecfbf83950a02 (patch)
treeac64133d73352829e5d58deb3f7553098ae12f4b /src/mailman/commands/eml_help.py
parent8cc7e77b85f013d6f9ea4cda16ae18856fd6ccee (diff)
downloadmailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.tar.gz
mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.tar.zst
mailman-d964be9f9a141772bb0538f7bc7ecfbf83950a02.zip
Diffstat (limited to 'src/mailman/commands/eml_help.py')
-rw-r--r--src/mailman/commands/eml_help.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mailman/commands/eml_help.py b/src/mailman/commands/eml_help.py
index 12599b161..8df4c666a 100644
--- a/src/mailman/commands/eml_help.py
+++ b/src/mailman/commands/eml_help.py
@@ -17,11 +17,7 @@
"""The email command 'help'."""
-__all__ = [
- 'Help',
- ]
-
-
+from mailman import public
from mailman.config import config
from mailman.core.i18n import _
from mailman.interfaces.command import ContinueProcessing, IEmailCommand
@@ -32,7 +28,7 @@ from zope.interface import implementer
SPACE = ' '
-
+@public
@implementer(IEmailCommand)
class Help:
"""The email 'help' command."""
@@ -63,14 +59,14 @@ class Help:
print(_('$self.name: no such command: $command_name'),
file=results)
return ContinueProcessing.no
- print('{0} {1}'.format(command.name, command.argument_description),
+ print('{} {}'.format(command.name, command.argument_description),
file=results)
print(command.short_description, file=results)
if command.short_description != command.description:
print(wrap(command.description), file=results)
return ContinueProcessing.yes
else:
- printable_arguments = SPACE.join(arguments)
+ printable_arguments = SPACE.join(arguments) # flake8: noqa
print(_('$self.name: too many arguments: $printable_arguments'),
file=results)
return ContinueProcessing.no