From c08b190d0b31d09ef25a0e213b719ff337ac533c Mon Sep 17 00:00:00 2001 From: tkikuchi Date: Thu, 1 Mar 2007 02:49:20 +0000 Subject: Restoreing i18n in 2.2 - As the default type of string in mailman-2.2 was set to 'unicode', i18n codes became need to be fixed. - Fixed: admin web interface. Other web interfaces needs more verification. - Fixed: non-digest delivery. Stil to go: digest and archive. --- Mailman/HTMLFormatter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Mailman/HTMLFormatter.py') diff --git a/Mailman/HTMLFormatter.py b/Mailman/HTMLFormatter.py index 2283f84ed..ab4c03a32 100644 --- a/Mailman/HTMLFormatter.py +++ b/Mailman/HTMLFormatter.py @@ -361,8 +361,8 @@ class HTMLFormatter: tag = parts[i].lower() if replacements.has_key(tag): repl = replacements[tag] - if isinstance(repl, type(u'')): - repl = repl.encode(charset, 'replace') + if isinstance(repl, str): + repl = unicode(repl, charset, 'replace') parts[i] = repl else: parts[i] = '' -- cgit v1.2.3-70-g09d2