summaryrefslogtreecommitdiff
path: root/src/mailman/runners/docs/command.rst
diff options
context:
space:
mode:
authorBarry Warsaw2014-04-28 11:23:35 -0400
committerBarry Warsaw2014-04-28 11:23:35 -0400
commitd4d71f71f08d6d440b17482eecc5472dcfe6cbae (patch)
tree71f08b3d60f698883294eaa6d1bf366a095da011 /src/mailman/runners/docs/command.rst
parent7536530dcd8d6303c0a869e8c9c2cb2517b9b018 (diff)
downloadmailman-d4d71f71f08d6d440b17482eecc5472dcfe6cbae.tar.gz
mailman-d4d71f71f08d6d440b17482eecc5472dcfe6cbae.tar.zst
mailman-d4d71f71f08d6d440b17482eecc5472dcfe6cbae.zip
Use print functions consistently through, and update all __future__ imports to
reflect this. Also, mock out sys.stderr on some tests so that their nose2 output is quieter. A few other minor coding style consistencies.
Diffstat (limited to 'src/mailman/runners/docs/command.rst')
-rw-r--r--src/mailman/runners/docs/command.rst14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mailman/runners/docs/command.rst b/src/mailman/runners/docs/command.rst
index 43682056b..a7a4da8ed 100644
--- a/src/mailman/runners/docs/command.rst
+++ b/src/mailman/runners/docs/command.rst
@@ -41,7 +41,7 @@ And now the response is in the ``virgin`` queue.
>>> len(messages)
1
- >>> print messages[0].msg.as_string()
+ >>> print(messages[0].msg.as_string())
Subject: The results of your email commands
From: test-bounces@example.com
To: aperson@example.com
@@ -91,7 +91,7 @@ message is plain text.
>>> len(messages)
1
- >>> print messages[0].msg.as_string()
+ >>> print(messages[0].msg.as_string())
Subject: The results of your email commands
From: test-bounces@example.com
To: bperson@example.com
@@ -144,7 +144,7 @@ address, and the other is the results of his email command.
>>> registrar = getUtility(IRegistrar)
>>> for item in messages:
... subject = item.msg['subject']
- ... print 'Subject:', subject
+ ... print('Subject:', subject)
... if 'confirm' in str(subject):
... token = str(subject).split()[1].strip()
... status = registrar.confirm(token)
@@ -171,7 +171,7 @@ Similarly, to leave a mailing list, the user need only email the ``-leave`` or
>>> len(messages)
1
- >>> print messages[0].msg.as_string()
+ >>> print(messages[0].msg.as_string())
Subject: The results of your email commands
From: test-bounces@example.com
To: dperson@example.com
@@ -206,7 +206,7 @@ The ``-confirm`` address is also available as an implicit command.
>>> len(messages)
1
- >>> print messages[0].msg.as_string()
+ >>> print(messages[0].msg.as_string())
Subject: The results of your email commands
From: test-bounces@example.com
To: dperson@example.com
@@ -250,7 +250,7 @@ looked at by the command queue.
>>> len(messages)
1
- >>> print messages[0].msg.as_string()
+ >>> print(messages[0].msg.as_string())
Subject: The results of your email commands
...
<BLANKLINE>
@@ -282,7 +282,7 @@ The ``stop`` command is an alias for ``end``.
>>> len(messages)
1
- >>> print messages[0].msg.as_string()
+ >>> print(messages[0].msg.as_string())
Subject: The results of your email commands
...
<BLANKLINE>