From a66ea550e7dc77e705ff7bfe5e7f4a90661cc218 Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Thu, 28 Jun 2001 04:09:36 +0000 Subject: UserNotification.__init__(): change the signature so that the text argument defaults to None. Only set the payload when the text argument is not None. --- Mailman/Message.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mailman/Message.py b/Mailman/Message.py index 9cc5798a2..2c736084b 100644 --- a/Mailman/Message.py +++ b/Mailman/Message.py @@ -87,9 +87,10 @@ class Message(mimelib.Message.Message, StringableMixin): class UserNotification(Message): """Class for internally crafted messages.""" - def __init__(self, recip, sender, subject=None, text=''): + def __init__(self, recip, sender, subject=None, text=None): Message.__init__(self) - self.set_payload(text) + if text is not None: + self.set_payload(text) if subject is None: subject = '(no subject)' self['Subject'] = subject -- cgit v1.2.3-70-g09d2