From: Kenneth Reitz Date: Mon, 20 Feb 2012 21:07:36 +0000 (-0500) Subject: python 3 unicode grr X-Git-Tag: v0.10.4~1^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd7610dd7a144879481b48e3b5412753b8499776;p=services%2Fpython-requests.git python 3 unicode grr --- diff --git a/requests/utils.py b/requests/utils.py index dd93b05..68efa46 100644 --- a/requests/utils.py +++ b/requests/utils.py @@ -183,7 +183,7 @@ def header_expand(headers): headers = list(headers.items()) elif isinstance(headers, basestring): return headers - elif isinstance(headers, unicode): + elif isinstance(headers, str): # As discussed in https://github.com/kennethreitz/requests/issues/400 # latin-1 is the most conservative encoding used on the web. Anyone # who needs more can encode to a byte-string before calling