The self was missing again, and I think the two blocks were redundant.

This commit is contained in:
Telofy
2012-01-30 12:23:43 +01:00
parent 319b1ed551
commit a61a861cfb
+1 -8
View File
@@ -773,17 +773,10 @@ class Response(object):
# Decode unicode from given encoding.
try:
content = str(self.content, encoding)
content = str(self.content, encoding, errors='replace')
except (UnicodeError, TypeError):
pass
# Try to fall back:
if not content:
try:
content = str(content, encoding, errors='replace')
except (UnicodeError, TypeError):
pass
return content