From d4d71f71f08d6d440b17482eecc5472dcfe6cbae Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 28 Apr 2014 11:23:35 -0400 Subject: 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. --- src/mailman/model/docs/pending.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/mailman/model/docs/pending.rst') 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) -- cgit v1.2.3-70-g09d2