Menu

Commit [r3255]  Maximize  Restore  History

Follow-up to r3215: better conversion of Exception objects to unicode string.

There are basically two ways for associating unicode strings to an Exception:
* creating the exception with unicode strings as arguments.
That was the situation handled by r3215, but the unit test for this was
broken.
* implementing a `__str__` method on the exception class, returning an
unicode object. This was not working with r3215 alone. Also added an
unit test for this situation.

Should fix #3088.

cboos 2006-05-01

changed /trunk/trac/util/__init__.py
changed /trunk/trac/util/tests/text.py
/trunk/trac/util/__init__.py Diff Switch to side-by-side view
Loading...
/trunk/trac/util/tests/text.py Diff Switch to side-by-side view
Loading...
MongoDB Logo MongoDB