Skip to content
Myr

settings.allow_unicode

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 7bd4777 · Browse files · 2 files+2 added−5 removed
This commit

State

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

Diff stats

2 files+2 added−5 removed

  • other:+2 added−5 removed

2 files+2 added−5 removed

modified:requests/config.py+1 added
60 unmodified lines
61settings.proxies = None62settings.verbose = None63settings.timeout = None64settings.max_redirects = 3065settings.allow_unicode = True6667#: Use socket.setdefaulttimeout() as fallback?68settings.timeout_fallback = True
modified:requests/models.py+1 added-5 removed
451 unmodified lines
452 except zlib.error:453 pass454455 # Decode unicode content.456 try:456 if settings.allow_unicode:457 self._content = get_unicode_from_response(self)458 # Don't trust this stuff.459 except UserWarning, e:460 print e458462459 return self._content460461 else:462 raise AttributeError
190 unmodified lines