From 464279f48d2aa3aea75edd037b7020eb23682002 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 21 Jan 2012 22:58:38 -0500 Subject: [PATCH] typo Signed-off-by: Kenneth Reitz --- requests/models.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/requests/models.py b/requests/models.py index 7941e96..0d08bea 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) -- 2.7.4