From 2f4bdc0951ec498f4dae26ffb89cf80037f3b2a5 Mon Sep 17 00:00:00 2001 From: tkikuchi <> Date: Wed, 12 Jan 2005 02:14:43 +0000 Subject: fixed addError() ... (errmsg % args) has been deprecated in favor of i18n._(). Now this cause bug traceback if errmsg contain '%'. *args insertion is removed. --- Mailman/htmlformat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Mailman') diff --git a/Mailman/htmlformat.py b/Mailman/htmlformat.py index f41c0b43..d80d081a 100644 --- a/Mailman/htmlformat.py +++ b/Mailman/htmlformat.py @@ -334,12 +334,12 @@ class Document(Container): output.append('%s' % tab) return NL.join(output) - def addError(self, errmsg, tag=None, *args): + def addError(self, errmsg, tag=None): if tag is None: tag = _('Error: ') self.AddItem(Header(3, Bold(FontAttr( _(tag), color=mm_cfg.WEB_ERROR_COLOR, size='+2')).Format() + - Italic(errmsg % args).Format())) + Italic(errmsg).Format())) class HeadlessDocument(Document): -- cgit v1.2.3