Update of /cvsroot/mailman/mailman/Mailman
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32757

Modified Files:
      Tag: Release_2_1-maint
        htmlformat.py 
Log Message:
fixed addError() ... (errmsg % args) has been deprecated in favor of
    i18n._(). Now this cause bug traceback if errmsg contain '%'.
    *args insertion is removed.


Index: htmlformat.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/htmlformat.py,v
retrieving revision 2.18.2.1
retrieving revision 2.18.2.2
diff -u -d -r2.18.2.1 -r2.18.2.2
--- htmlformat.py       22 Sep 2003 02:58:13 -0000      2.18.2.1
+++ htmlformat.py       12 Jan 2005 02:14:43 -0000      2.18.2.2
@@ -334,12 +334,12 @@
             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):

_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org

Reply via email to