aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/htmlformat.py
diff options
context:
space:
mode:
authortkikuchi <>2005-01-12 02:14:43 +0000
committertkikuchi <>2005-01-12 02:14:43 +0000
commit2f4bdc0951ec498f4dae26ffb89cf80037f3b2a5 (patch)
tree016e50a313132cb30595d8a391a0112ea7c8c60c /Mailman/htmlformat.py
parentd67132fde1657204e6f2b9641c0922b0661b6213 (diff)
downloadmailman2-2f4bdc0951ec498f4dae26ffb89cf80037f3b2a5.tar.gz
mailman2-2f4bdc0951ec498f4dae26ffb89cf80037f3b2a5.tar.xz
mailman2-2f4bdc0951ec498f4dae26ffb89cf80037f3b2a5.zip
fixed addError() ... (errmsg % args) has been deprecated in favor of
i18n._(). Now this cause bug traceback if errmsg contain '%'. *args insertion is removed.
Diffstat (limited to 'Mailman/htmlformat.py')
-rw-r--r--Mailman/htmlformat.py4
1 files changed, 2 insertions, 2 deletions
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</HTML>' % 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):