projects
/
services
/
python-requests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b14a244
)
typo
author
Kenneth Reitz
<me@kennethreitz.com>
Sun, 22 Jan 2012 03:58:38 +0000
(22:58 -0500)
committer
Kenneth Reitz
<me@kennethreitz.com>
Sun, 22 Jan 2012 03:58:38 +0000
(22:58 -0500)
Signed-off-by: Kenneth Reitz <me@kennethreitz.com>
requests/models.py
patch
|
blob
|
history
diff --git
a/requests/models.py
b/requests/models.py
index
7941e96
..
0d08bea
100644
(file)
--- 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)