summaryrefslogtreecommitdiff
path: root/src/mailman/model/docs/pending.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/model/docs/pending.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/model/docs/pending.rst')
-rw-r--r--src/mailman/model/docs/pending.rst8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mailman/model/docs/pending.rst b/src/mailman/model/docs/pending.rst
index 3d33dd5da..d8206b264 100644
--- a/src/mailman/model/docs/pending.rst
+++ b/src/mailman/model/docs/pending.rst
@@ -39,7 +39,7 @@ the database that matches the token. If the token isn't in the database, None
is returned.
>>> pendable = pendingdb.confirm(bytes('missing'))
- >>> print pendable
+ >>> print(pendable)
None
>>> pendable = pendingdb.confirm(token)
>>> dump_msgdata(pendable)
@@ -51,7 +51,7 @@ is returned.
After confirmation, the token is no longer in the database.
- >>> print pendingdb.confirm(token)
+ >>> print(pendingdb.confirm(token))
None
There are a few other things you can do with the pending database. When you
@@ -70,7 +70,7 @@ expunge it.
>>> pendable = pendingdb.confirm(token_1, expunge=True)
>>> dump_msgdata(pendable)
type: one
- >>> print pendingdb.confirm(token_1)
+ >>> print(pendingdb.confirm(token_1))
None
An event can be given a lifetime when it is pended, otherwise it just uses a
@@ -84,7 +84,7 @@ default lifetime.
Every once in a while the pending database is cleared of old records.
>>> pendingdb.evict()
- >>> print pendingdb.confirm(token_4)
+ >>> print(pendingdb.confirm(token_4))
None
>>> pendable = pendingdb.confirm(token_2)
>>> dump_msgdata(pendable)