From e9d6d732547ba197c198a0f8e5f3acb6c4c95b96 Mon Sep 17 00:00:00 2001 From: bwarsaw <> Date: Mon, 1 Dec 2003 01:38:22 +0000 Subject: True/False where appropriate. --- Mailman/Handlers/SMTPDirect.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Mailman/Handlers/SMTPDirect.py b/Mailman/Handlers/SMTPDirect.py index 2604c244..cb967ad0 100644 --- a/Mailman/Handlers/SMTPDirect.py +++ b/Mailman/Handlers/SMTPDirect.py @@ -45,6 +45,12 @@ from email.Charset import Charset DOT = '.' +try: + True, False +except NameError: + True = 1 + False = 0 + # Manage a connection to the SMTP server @@ -123,7 +129,7 @@ def process(mlist, msg, msgdata): # Be sure never to decorate the message more than once! if not msgdata.get('decorated'): Decorate.process(mlist, msg, msgdata) - msgdata['decorated'] = 1 + msgdata['decorated'] = True deliveryfunc = bulkdeliver refused = {} t0 = time.time() -- cgit v1.2.3