diff options
| author | tkikuchi | 2007-03-01 02:49:20 +0000 |
|---|---|---|
| committer | tkikuchi | 2007-03-01 02:49:20 +0000 |
| commit | c08b190d0b31d09ef25a0e213b719ff337ac533c (patch) | |
| tree | e04020252b8d0ff1e2c75dd73adbad8c23c9d6f3 /Mailman/HTMLFormatter.py | |
| parent | 8f9ab154c34e72223b4622052db2017d117cb489 (diff) | |
| download | mailman-c08b190d0b31d09ef25a0e213b719ff337ac533c.tar.gz mailman-c08b190d0b31d09ef25a0e213b719ff337ac533c.tar.zst mailman-c08b190d0b31d09ef25a0e213b719ff337ac533c.zip | |
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.
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] = '' |
