Skip to content
Myr

Fix warnings when building the docs

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

It may be nice to make builds fail if new documentation generates warnings, to avoid these sorts of problems slipping in in the future.

authored by Kevin Burke · committed by Kevin Burke · parent 99ebac7 · Browse files · 5 files+7 added−6 removed
This commit

State

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

Diff stats

5 files+7 added−6 removed

  • other:+7 added−6 removed

5 files+7 added−6 removed

modified:docs/user/advanced.rst+1 added-1 removed
298 unmodified lines
299300 >>> requests.get('http://pizzabin.org/admin', auth=PizzaAuth('kenneth'))301 <Response [200]>302303.. _streaming-requests303.. _streaming-requests:304305Streaming Requests306------------------307
321 unmodified lines
modified:docs/index.rst-1 removed
128 unmodified lines
129.. toctree::130 :maxdepth: 1131132 dev/philosophy133 dev/internals133 dev/todo134 dev/authors
modified:requests/adapters.py+4 added-2 removed
53 unmodified lines
54 covers.5556 :param pool_connections: The number of urllib3 connection pools to cache.57 :param pool_maxsize: The maximum number of connections to save in the pool.58 :param max_retries: The maximum number of retries each connection should attempt.58 :param int max_retries: The maximum number of retries each connection59 should attempt. Note, this applies only to failed connections and60 timeouts, never to requests where the server returns a response.61 :param pool_block: Whether the connection pool should block for connections.6263 Usage::6465 >>> import requests66 >>> s = requests.Session()65 >>> a = requests.adapters.HTTPAdapter()67 >>> a = requests.adapters.HTTPAdapter(max_retries=3)68 >>> s.mount('http://', a)69 """70 __attrs__ = ['max_retries', 'config', '_pool_connections', '_pool_maxsize',71 '_pool_block']
321 unmodified lines
modified:requests/models.py+1 added-1 removed
524 unmodified lines
525 #: value of a ``'Content-Encoding'`` response header.526 self.headers = CaseInsensitiveDict()527528 #: File-like object representation of response (for advanced usage).529 #: Requires that ``stream=True` on the request.529 #: Use of ``raw`` requires that ``stream=True`` be set on the request.530 # This requirement does not apply for use internally to Requests.531 self.raw = None532533 #: Final URL location of Response.
248 unmodified lines
modified:requests/sessions.py+1 added-1 removed
254 unmodified lines
255 merged from the :class:`Request <Request>` instance and those of the256 :class:`Session`.257258 :param request: :class:`Request` instance to prepare with this259 session's settings.259 session's settings.260 """261 cookies = request.cookies or {}262263 # Bootstrap CookieJar.
290 unmodified lines