Commit 246a589a authored by Arnaud Fontaine's avatar Arnaud Fontaine

WIP: Futurize false positive.

parent 7b4f9991
......@@ -76,7 +76,7 @@ def to_unicode(x, encoding=None):
"""In Zope the ISO-8859-1 encoding has an special status, normal strings
are considered to be in this encoding by default.
"""
if isinstance(x, str):
if isinstance(x, bytes):
return str(x, encoding or HTTPRequest.default_encoding)
return str(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