Skip to content
Myr

Merge pull request #2878 from kiddick/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Remove redundant json import.

authored by Cory Benfield · committed by Cory Benfield · parents 6d0017e, de2a5f4 · Browse files · 1 file+0 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+0 added−1 removed

  • other:+0 added−1 removed

1 file+0 added−1 removed

modified:docs/user/quickstart.rst-1 removed
236 unmodified lines
237238Instead of encoding the ``dict`` yourself, you can also pass it directly using239the ``json`` parameter (added in version 2.4.2) and it will be encoded automatically::240241 >>> import json241 >>> url = 'https://api.github.com/some/endpoint'242 >>> payload = {'some': 'data'}243244 >>> r = requests.post(url, json=payload)
249 unmodified lines