Commit 94231316 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

'return' was missing.

parent 1b6edf70
......@@ -68,7 +68,7 @@ def to_unicode(x, encoding=None):
are considered to be in this encoding by default.
"""
if isinstance(x, str):
unicode(x, encoding or HTTPRequest.default_encoding)
return unicode(x, encoding or HTTPRequest.default_encoding)
return unicode(x)
......
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