Skip to content
Myr

python 3 unicode grr

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 b0e1865 · Browse files · 1 file+1 added−1 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−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/utils.py+1 added-1 removed
181 unmodified lines
182 if isinstance(headers, dict):183 headers = list(headers.items())184 elif isinstance(headers, basestring):185 return headers186 elif isinstance(headers, unicode):186 elif isinstance(headers, str):187 # As discussed in https://github.com/kennethreitz/requests/issues/400188 # latin-1 is the most conservative encoding used on the web. Anyone189 # who needs more can encode to a byte-string before calling190 return headers.encode("latin-1")
266 unmodified lines