summaryrefslogtreecommitdiff
path: root/src/mailman/commands/docs/echo.rst
diff options
context:
space:
mode:
Diffstat (limited to 'src/mailman/commands/docs/echo.rst')
-rw-r--r--src/mailman/commands/docs/echo.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mailman/commands/docs/echo.rst b/src/mailman/commands/docs/echo.rst
index db5161e1e..32399ebfc 100644
--- a/src/mailman/commands/docs/echo.rst
+++ b/src/mailman/commands/docs/echo.rst
@@ -6,11 +6,11 @@ The mail command 'echo' simply replies with the original command and arguments
to the sender.
>>> command = config.commands['echo']
- >>> print command.name
+ >>> print(command.name)
echo
- >>> print command.argument_description
+ >>> print(command.argument_description)
[args]
- >>> print command.description
+ >>> print(command.description)
Echo back your arguments.
The original message is ignored, but the results receive the echoed command.
@@ -22,9 +22,9 @@ The original message is ignored, but the results receive the echoed command.
>>> results = Results()
>>> from mailman.email.message import Message
- >>> print command.process(mlist, Message(), {}, ('foo', 'bar'), results)
+ >>> print(command.process(mlist, Message(), {}, ('foo', 'bar'), results))
ContinueProcessing.yes
- >>> print unicode(results)
+ >>> print(unicode(results))
The results of your email command are provided below.
<BLANKLINE>
echo foo bar