Skip to content
Myr

merge cleanups

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 aa31b6b · Browse files · 2 files+1 added−30 removed
This commit

State

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

Diff stats

2 files+1 added−30 removed

  • other:+1 added−30 removed

2 files+1 added−30 removed

modified:docs/user/intro.rst-4 removed
45 unmodified lines
46 Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.4748 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.49505152Support for Python 3.x is planned.53Support for Python 3.x is planned.
modified:requests/api.py+1 added-26 removed
36 unmodified lines
37 :param auth: (optional) AuthObject to enable Basic HTTP Auth.38 :param timeout: (optional) Float describing the timeout of the request.39 :param allow_redirects: (optional) Boolean. Set to True if POST/PUT/DELETE redirect following is allowed.40 :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.41 :param return_response: (optional) If False, an un-sent Request object will returned.42 """4344 method = str(method).upper()45
50 unmodified lines
9697 """Sends a GET request. Returns :class:`Response` object.9899 :param url: URL for the new :class:`Request` object.99 :param params: (optional) Dictionary of parameters, or bytes, to be sent in the query string for the :class:`Request`.100 :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.101 :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.102 :param auth: (optional) AuthObject to enable Basic HTTP Auth.103 :param timeout: (optional) Float describing the timeout of the request.104 :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.105 :param params: (optional) Dictionary of parameters, or bytes, to be sent in the query string for the :class:`Request`.106 :param headers: (optional) Dictionary of HTTP Headers to send with the :class:`Request`.107 :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.108 :param auth: (optional) AuthObject to enable Basic HTTP Auth.109 :param timeout: (optional) Float describing the timeout of the request.110 :param allow_redirects: (optional) Boolean. Set to False to disable redirect following.111 :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.100 :param **kwargs: Optional arguments that ``request`` takes.101 """102103
4 unmodified lines
108def head(url, **kwargs):109 """Sends a HEAD request. Returns :class:`Response` object.110111 :param url: URL for the new :class:`Request` object.124 :param params: (optional) Dictionary of parameters, or bytes, to be sent in the query string for the :class:`Request`.125 :param headers: (optional) Dictionary of HTTP Headers to sent with the :class:`Request`.126 :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.127 :param auth: (optional) AuthObject to enable Basic HTTP Auth.128 :param timeout: (optional) Float describing the timeout of the request.129 :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.130 :param params: (optional) Dictionary of parameters, or bytes, to be sent in the query string for the :class:`Request`.131 :param headers: (optional) Dictionary of HTTP Headers to sent with the :class:`Request`.132 :param cookies: (optional) Dict or CookieJar object to send with the :class:`Request`.133 :param auth: (optional) AuthObject to enable Basic HTTP Auth.134 :param timeout: (optional) Float describing the timeout of the request.135 :param allow_redirects: (optional) Boolean. Set to False to disable redirect following.136 :param proxies: (optional) Dictionary mapping protocol to the URL of the proxy.112 :param **kwargs: Optional arguments that ``request`` takes.113 """114115 kwargs.setdefault('allow_redirects', True)
44 unmodified lines