summaryrefslogtreecommitdiff
path: root/src/mailman/app/docs/subscriptions.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/app/docs/subscriptions.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/app/docs/subscriptions.rst')
-rw-r--r--src/mailman/app/docs/subscriptions.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mailman/app/docs/subscriptions.rst b/src/mailman/app/docs/subscriptions.rst
index dd8298cb3..8c3d8b28d 100644
--- a/src/mailman/app/docs/subscriptions.rst
+++ b/src/mailman/app/docs/subscriptions.rst
@@ -18,7 +18,7 @@ membership role. At first, there are no memberships.
>>> sum(1 for member in service)
0
>>> from uuid import UUID
- >>> print service.get_member(UUID(int=801))
+ >>> print(service.get_member(UUID(int=801)))
None
@@ -60,7 +60,7 @@ And all the subscribed members can now be displayed.
as MemberRole.member>]
>>> sum(1 for member in service)
3
- >>> print service.get_member(UUID(int=3))
+ >>> print(service.get_member(UUID(int=3)))
<Member: anne <anne@example.com> on test@example.com as MemberRole.owner>
New members can also be added by providing an existing user id instead of an