Skip to content
Myr

or str

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

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:requests/models.py+2 added
323 unmodified lines
324 """325326 if isinstance(data, bytes):327 return data, data328 if isinstance(data, str):329 return data, data330 elif hasattr(data, '__iter__'):331 try:332 dict(data)333 except ValueError:
521 unmodified lines