From a282e91c97524f062dc340ea64b925bad088d8af Mon Sep 17 00:00:00 2001 From: bwarsaw Date: Fri, 15 Sep 2000 19:19:17 +0000 Subject: GetListIdentifier(): Don't include the description if it's empty (saves an extra leading space in that case). --- Mailman/MailList.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 64f04b7f7..46d89c3b9 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -184,8 +184,10 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, def GetListIdentifier(self): """Return the unique (RFC draft-chandhok-listid-02) identifier.""" - return ("%s <%s.%s>" % - (self.description, self._internal_name, self.host_name)) + id = '<%s.%s>' % (self._internal_name, self.host_name) + if self.description: + id = self.description + ' ' + id + return id def GetScriptURL(self, scriptname, absolute=0): return Utils.ScriptURL(scriptname, self.web_page_url, absolute) + \ -- cgit v1.3.1