Skip to content
Myr

Refactor default params

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

Specified the default argument for params that have a default in the docstring so that the default is easier to see from the code. Modified the docstring in api.py to match the docstring in sessions.py.

authored by Brian Samek · committed by Brian Samek · parent 2d91365 · Browse files · 3 files+5 added−4 removed
This commit

State

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

Diff stats

3 files+5 added−4 removed

  • other:+5 added−4 removed

3 files+5 added−4 removed

modified:requests/api.py+1 added-1 removed
31 unmodified lines
32 :type timeout: float or tuple33 :param allow_redirects: (optional) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed.34 :type allow_redirects: bool35 :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.36 :param verify: (optional) if ``True``, the SSL cert will be verified. A CA_BUNDLE path can also be provided.36 :param verify: (optional) whether the SSL cert will be verified. A CA_BUNDLE path can also be provided. Defaults to ``True``.37 :param stream: (optional) if ``False``, the response content will be immediately downloaded.38 :param cert: (optional) if String, path to ssl client cert file (.pem). If Tuple, ('cert', 'key') pair.39 :return: :class:`Response <Response>` object40 :rtype: requests.Response
105 unmodified lines
modified:requests/sessions.py+3 added-3 removed
398 unmodified lines
399 timeout=None,400 allow_redirects=True,401 proxies=None,402 hooks=None,403 stream=None,404 verify=None,403 stream=False,404 verify=True,405 cert=None,406 json=None):407 """Constructs a :class:`Request <Request>`, prepares it and sends it.408 Returns :class:`Response <Response>` object.
23 unmodified lines
432 :param proxies: (optional) Dictionary mapping protocol or protocol and433 hostname to the URL of the proxy.434 :param stream: (optional) whether to immediately download the response435 content. Defaults to ``False``.436 :param verify: (optional) if ``True``, the SSL cert will be verified.436 :param verify: (optional) whether the SSL cert will be verified.437 A CA_BUNDLE path can also be provided. Defaults to ``True``.438 :param cert: (optional) if String, path to ssl client cert file (.pem).439 If Tuple, ('cert', 'key') pair.440 """
240 unmodified lines
modified:AUTHORS.rst+1 added
160 unmodified lines
161- Colin Dickson (`@colindickson <https://github.com/colindickson>`_)162- Smiley Barry (`@smiley <https://github.com/smiley>`_)163- Shagun Sodhani (`@shagunsodhani <https://github.com/shagunsodhani>`_)164- Robin Linderborg (`@vienno <https://github.com/vienno>`_)165- Brian Samek(`@bsamek <https://github.com/bsamek`_)