Signed-off-by: Kenneth Reitz <me@kennethreitz.com>
This commit is contained in:
Kenneth Reitz
2012-01-21 22:58:38 -05:00
parent b14a244ab4
commit 464279f48d
-2
View File
@@ -734,7 +734,6 @@ class Response(object):
# Fallback to auto-detected encoding if chardet is available.
if self.encoding is None:
try:
detected = chardet.detect(self.content) or {}
encoding = detected.get('encoding')
@@ -743,7 +742,6 @@ class Response(object):
except Exception:
pass
# Decode unicode from given encoding.
try:
content = unicode(self.content, encoding)