diff options
| author | Barry Warsaw | 2012-03-01 20:02:00 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2012-03-01 20:02:00 -0500 |
| commit | 07aa6808fbc5288592c5a41c658882ad37756fca (patch) | |
| tree | 5026c68aa200019cff6800c93503c9b9b7e737ac /src/mailman/commands/eml_echo.py | |
| parent | a8f2a1c6dcc27927d8163e0ca6e50f9986a84385 (diff) | |
| download | mailman-07aa6808fbc5288592c5a41c658882ad37756fca.tar.gz mailman-07aa6808fbc5288592c5a41c658882ad37756fca.tar.zst mailman-07aa6808fbc5288592c5a41c658882ad37756fca.zip | |
* Added a `help` email command.
Also:
- updated the 'join' command's descriptions
- email commands should now have a short_description. The description
(i.e. long description) should not repeat this information.
Diffstat (limited to 'src/mailman/commands/eml_echo.py')
| -rw-r--r-- | src/mailman/commands/eml_echo.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mailman/commands/eml_echo.py b/src/mailman/commands/eml_echo.py index 4686d0e4d..06d5ee5e7 100644 --- a/src/mailman/commands/eml_echo.py +++ b/src/mailman/commands/eml_echo.py @@ -17,6 +17,8 @@ """The email command 'echo'.""" +from __future__ import absolute_import, print_function, unicode_literals + __metaclass__ = type __all__ = [ 'Echo', @@ -39,10 +41,10 @@ class Echo: name = 'echo' argument_description = '[args]' - description = _( - 'Echo an acknowledgement. Arguments are return unchanged.') + description = _('Echo back your arguments.') + short_description = description def process(self, mlist, msg, msgdata, arguments, results): """See `IEmailCommand`.""" - print >> results, 'echo', SPACE.join(arguments) + print('echo', SPACE.join(arguments), file=results) return ContinueProcessing.yes |
