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:
636e61d
)
whitespace
author
Kenneth Reitz
<me@kennethreitz.com>
Wed, 24 Aug 2011 03:09:51 +0000
(23:09 -0400)
committer
Kenneth Reitz
<me@kennethreitz.com>
Wed, 24 Aug 2011 03:09:51 +0000
(23:09 -0400)
requests/utils.py
patch
|
blob
|
history
diff --git
a/requests/utils.py
b/requests/utils.py
index 35eb005bb3164a0851e2b56e6ce0253278eb9463..2b55a164f438ff87d4568cfbff8a916a02bb7b2a 100644
(file)
--- a/
requests/utils.py
+++ b/
requests/utils.py
@@
-96,7
+96,6
@@
def get_encodings_from_content(content):
return charset_re.findall(content)
-
def get_encoding_from_headers(headers):
"""Returns encodings from given HTTP Header Dict.
@@
-124,9
+123,7
@@
def unicode_from_html(content):
except (UnicodeError, TypeError):
pass
- return content
-
-
+ return content
def get_unicode_from_response(r):