get_unicode_from_response returned str instead of unicode

This commit is contained in:
Honza Javorek
2012-02-23 17:28:56 +01:00
parent 3c58600187
commit 1661bf6543
+1 -1
View File
@@ -374,7 +374,7 @@ def get_unicode_from_response(r):
# Fall back:
try:
return str(r.content, encoding, errors='replace')
return unicode(r.content, encoding, errors='replace')
except TypeError:
return r.content