Skip to content
Myr

whitespace

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 636e61d · Browse files · 1 file+1 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−4 removed

  • other:+1 added−4 removed

1 file+1 added−4 removed

modified:requests/utils.py+1 added-4 removed
94 unmodified lines
9596 return charset_re.findall(content)97989999def get_encoding_from_headers(headers):100 """Returns encodings from given HTTP Header Dict.101102 :param headers: dictionary to extract encoding from.
19 unmodified lines
122 return unicode(content, encoding)123 except (UnicodeError, TypeError):124 pass125127 return content126 return content127128130131129def get_unicode_from_response(r):130 """Returns the requested content back in unicode.131132 :param r: Reponse object to get unicode content from.
36 unmodified lines