Menu

Commit [r6984]  Maximize  Restore  History

`TracError` message can be directly converted to unicode.

This avoids error when calling `unicode(e)` when `e` is a `TracError` containing an unicode message. Without the present change, `e` would first be converted to a `str`, ''then'' that `str` to an unicode object. Needless to say, the first conversion will usually trigger an UnicodeEncodeError, as the default character set is usually 'ascii'.

Fixes #5981, thanks to Shun-ichi Goto for the patch.

cboos 2008-05-02

changed /sandbox/i18n/trac/core.py
/sandbox/i18n/trac/core.py Diff Switch to side-by-side view
Loading...