summaryrefslogtreecommitdiff
path: root/src/mailman/app/docs/lifecycle.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/lifecycle.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/lifecycle.rst')
-rw-r--r--src/mailman/app/docs/lifecycle.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/app/docs/lifecycle.rst b/src/mailman/app/docs/lifecycle.rst
index ee7185373..f059806af 100644
--- a/src/mailman/app/docs/lifecycle.rst
+++ b/src/mailman/app/docs/lifecycle.rst
@@ -52,7 +52,7 @@ However, all addresses are linked to users.
>>> user_manager = getUtility(IUserManager)
>>> for address in owners:
... user = user_manager.get_user(address)
- ... print int(user.user_id.int), list(user.addresses)[0]
+ ... print(int(user.user_id.int), list(user.addresses)[0])
1 aperson@example.com
2 bperson@example.com
3 cperson@example.com
@@ -64,7 +64,7 @@ the system, they won't be created again.
>>> bee = create_list('bee@example.com', owners)
>>> from operator import attrgetter
>>> for user in sorted(bee.owners.users, key=attrgetter('user_id')):
- ... print int(user.user_id.int), list(user.addresses)[0]
+ ... print(int(user.user_id.int), list(user.addresses)[0])
1 aperson@example.com
2 bperson@example.com
3 cperson@example.com
@@ -82,7 +82,7 @@ artifacts.
>>> remove_list(bee)
>>> from mailman.interfaces.listmanager import IListManager
- >>> print getUtility(IListManager).get('bee@example.com')
+ >>> print(getUtility(IListManager).get('bee@example.com'))
None
We should now be able to completely recreate the mailing list.