aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman
diff options
context:
space:
mode:
authortkikuchi <>2005-12-26 01:22:09 +0000
committertkikuchi <>2005-12-26 01:22:09 +0000
commit7c6464ac0f6acc41d6906a8a8d411014d65119ce (patch)
tree3ca80281b3ce6f6913b7ffd02f93ccf6a1452561 /Mailman
parent7ed12ca5e76dac460e529856ef3e376788e06f21 (diff)
downloadmailman2-7c6464ac0f6acc41d6906a8a8d411014d65119ce.tar.gz
mailman2-7c6464ac0f6acc41d6906a8a8d411014d65119ce.tar.xz
mailman2-7c6464ac0f6acc41d6906a8a8d411014d65119ce.zip
True/False definition for Python2.1.
Only check in Release_2_1-maint branch because 2.2 will require higher version of python.
Diffstat (limited to '')
-rw-r--r--Mailman/Archiver/pipermail.py7
-rw-r--r--Mailman/Handlers/Approve.py7
2 files changed, 14 insertions, 0 deletions
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'