Commit ab284344 authored by owsla's avatar owsla

Support Unicode log messages.


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@850 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent 6d0c08ff
New in v1.1.15 (????/??/??)
---------------------------
Permit Unicode log messages. (Andrew Ferguson)
New in v1.1.14 (2007/08/13)
---------------------------
......
......@@ -112,7 +112,8 @@ class Logger:
if verbosity > self.verbosity and verbosity > self.term_verbosity:
return
if not type(message) is types.StringType:
if not (type(message) is types.StringType
or type(message) is types.UnicodeType):
assert type(message) is types.FunctionType
message = message()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment