diff options
Diffstat (limited to 'Mailman/HTMLFormatter.py')
| -rw-r--r-- | Mailman/HTMLFormatter.py | 4 |
1 files changed, 2 insertions, 2 deletions
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] = '' |
