From 7c6464ac0f6acc41d6906a8a8d411014d65119ce Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Mon, 26 Dec 2005 01:22:09 +0000 Subject: True/False definition for Python2.1. Only check in Release_2_1-maint branch because 2.2 will require higher version of python. --- Mailman/Archiver/pipermail.py | 7 +++++++ Mailman/Handlers/Approve.py | 7 +++++++ 2 files changed, 14 insertions(+) (limited to 'Mailman') diff --git a/Mailman/Archiver/pipermail.py b/Mailman/Archiver/pipermail.py index f27e1101..ec5abaff 100644 --- a/Mailman/Archiver/pipermail.py +++ b/Mailman/Archiver/pipermail.py @@ -21,6 +21,13 @@ from Mailman.Mailbox import ArchiverMailbox from Mailman.Logging.Syslog import syslog from Mailman.i18n import _ +# True/False +try: + True, False +except NameError: + True = 1 + False = 0 + SPACE = ' ' diff --git a/Mailman/Handlers/Approve.py b/Mailman/Handlers/Approve.py index 53fac181..42b15e97 100644 --- a/Mailman/Handlers/Approve.py +++ b/Mailman/Handlers/Approve.py @@ -29,6 +29,13 @@ from email.Iterators import typed_subpart_iterator from Mailman import mm_cfg from Mailman import Errors +# True/False +try: + True, False +except NameError: + True = 1 + False = 0 + NL = '\n' -- cgit v1.2.3