From 0682fbd24ad2d1b2ae76cbe54ac37148b4c07ed0 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 7 Oct 2022 13:53:44 +0100 Subject: [PATCH 1/2] gh-97822: Fix http.server documentation reference to test() function --- Doc/library/http.server.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index 48f952daae12f5..6872a111de4fd7 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -392,8 +392,8 @@ provides three different variants: contents of the file are output. If the file's MIME type starts with ``text/`` the file is opened in text mode; otherwise binary mode is used. - For example usage, see the implementation of the :func:`test` function - invocation in the :mod:`http.server` module. + For example usage, see the implementation of the ``test`` function + invocation in :source:`Lib/http/server.py`. .. versionchanged:: 3.7 Support of the ``'If-Modified-Since'`` header. From d6fe4ce023150e3a5eb137e499b2173a81092e92 Mon Sep 17 00:00:00 2001 From: Jelle Zijlstra Date: Fri, 7 Oct 2022 21:00:57 -0700 Subject: [PATCH 2/2] Update Doc/library/http.server.rst --- Doc/library/http.server.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/http.server.rst b/Doc/library/http.server.rst index 6872a111de4fd7..81b6bf5373b495 100644 --- a/Doc/library/http.server.rst +++ b/Doc/library/http.server.rst @@ -393,7 +393,7 @@ provides three different variants: ``text/`` the file is opened in text mode; otherwise binary mode is used. For example usage, see the implementation of the ``test`` function - invocation in :source:`Lib/http/server.py`. + in :source:`Lib/http/server.py`. .. versionchanged:: 3.7 Support of the ``'If-Modified-Since'`` header.