diff --git a/requests/models.py b/requests/models.py index 7941e961..0d08bea1 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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)