Skip to content
Myr

bytes data fix for python3

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

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:requests/models.py+3 added
281 unmodified lines
282 Otherwise, assumes the data is already encoded appropriately, and283 returns it twice.284 """285286 if isinstance(data, bytes):287 return data, data288289 if hasattr(data, '__iter__') and not isinstance(data, str):290 data = dict(data)291292
509 unmodified lines