summaryrefslogtreecommitdiffstats
path: root/Doc/howto
diff options
context:
space:
mode:
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>2024-01-14 21:14:08 (GMT)
committerGitHub <noreply@github.com>2024-01-14 21:14:08 (GMT)
commitcc11c76da7a099bb4535ab8ca507e55263fc35b6 (patch)
tree82c542a9a7784af1ccf823fc40e6841cb03de1bc /Doc/howto
parent2aea0e967a28aa1dc7729e28dd36dd9abf50e24b (diff)
downloadcpython-cc11c76da7a099bb4535ab8ca507e55263fc35b6.zip
cpython-cc11c76da7a099bb4535ab8ca507e55263fc35b6.tar.gz
cpython-cc11c76da7a099bb4535ab8ca507e55263fc35b6.tar.bz2
[3.12] gh-101100: Fix Sphinx warnings in `howto/urllib2.rst` and `library/http.client.rst` (GH-114060) (#114063)
(cherry picked from commit c2808431b32fa7bc0d222d4549389f781f1a7333)
Diffstat (limited to 'Doc/howto')
-rw-r--r--Doc/howto/urllib2.rst18
1 files changed, 9 insertions, 9 deletions
diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst
index 570435d..7f54a41 100644
--- a/Doc/howto/urllib2.rst
+++ b/Doc/howto/urllib2.rst
@@ -392,16 +392,16 @@ info and geturl
===============
The response returned by urlopen (or the :exc:`~urllib.error.HTTPError` instance) has two
-useful methods :meth:`info` and :meth:`geturl` and is defined in the module
-:mod:`urllib.response`..
+useful methods :meth:`!info` and :meth:`!geturl` and is defined in the module
+:mod:`urllib.response`.
-**geturl** - this returns the real URL of the page fetched. This is useful
-because ``urlopen`` (or the opener object used) may have followed a
-redirect. The URL of the page fetched may not be the same as the URL requested.
+* **geturl** - this returns the real URL of the page fetched. This is useful
+ because ``urlopen`` (or the opener object used) may have followed a
+ redirect. The URL of the page fetched may not be the same as the URL requested.
-**info** - this returns a dictionary-like object that describes the page
-fetched, particularly the headers sent by the server. It is currently an
-:class:`http.client.HTTPMessage` instance.
+* **info** - this returns a dictionary-like object that describes the page
+ fetched, particularly the headers sent by the server. It is currently an
+ :class:`http.client.HTTPMessage` instance.
Typical headers include 'Content-length', 'Content-type', and so on. See the
`Quick Reference to HTTP Headers <https://jkorpela.fi/http.html>`_
@@ -507,7 +507,7 @@ than the URL you pass to .add_password() will also match. ::
In the above example we only supplied our ``HTTPBasicAuthHandler`` to
``build_opener``. By default openers have the handlers for normal situations
- -- ``ProxyHandler`` (if a proxy setting such as an :envvar:`http_proxy`
+ -- ``ProxyHandler`` (if a proxy setting such as an :envvar:`!http_proxy`
environment variable is set), ``UnknownHandler``, ``HTTPHandler``,
``HTTPDefaultErrorHandler``, ``HTTPRedirectHandler``, ``FTPHandler``,
``FileHandler``, ``DataHandler``, ``HTTPErrorProcessor``.