mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user