From c19b2c517256ef2a8cd5915d9d5f44612731881d Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Sat, 20 Aug 2011 19:47:43 -0400 Subject: [PATCH] settings.decode_unicode --- requests/config.py | 2 +- requests/models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/requests/config.py b/requests/config.py index 5a7fcd3..794109c 100644 --- a/requests/config.py +++ b/requests/config.py @@ -62,7 +62,7 @@ settings.proxies = None settings.verbose = None settings.timeout = None settings.max_redirects = 30 -settings.allow_unicode = True +settings.decode_unicode = True #: Use socket.setdefaulttimeout() as fallback? settings.timeout_fallback = True diff --git a/requests/models.py b/requests/models.py index 5152460..db8a60e 100644 --- a/requests/models.py +++ b/requests/models.py @@ -453,7 +453,7 @@ class Response(object): pass # Decode unicode content. - if settings.allow_unicode: + if settings.decode_unicode: self._content = get_unicode_from_response(self) return self._content -- 2.7.4