diff options
-rw-r--r-- | Mailman/Archiver/pipermail.py | 7 | ||||
-rw-r--r-- | Mailman/Handlers/Approve.py | 7 |
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' |