Skip to content
Myr

Merge pull request #2582 from mhavard999/master

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

Make docstring of api.get more clear

authored by Cory Benfield · committed by Cory Benfield · parents ff71b25, 6e9ebc0 · Browse files · 1 file+3 added−2 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−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:requests/api.py+3 added-2 removed
53 unmodified lines
54 session.close()55 return response565758def get(url, **kwargs):58def get(url, params=None, **kwargs):59 """Sends a GET request.6061 :param url: URL for the new :class:`Request` object.62 :param params: (optional) Dictionary or bytes to be sent in the query string for the :class:`Request`.63 :param \*\*kwargs: Optional arguments that ``request`` takes.64 :return: :class:`Response <Response>` object65 :rtype: requests.Response66 """6768 kwargs.setdefault('allow_redirects', True)68 return request('get', url, **kwargs)69 return request('get', url, params=params, **kwargs)707172def options(url, **kwargs):73 """Sends a OPTIONS request.
74 unmodified lines