]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-97822: Fix http.server documentation reference to test() function (GH-98027)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 8 Oct 2022 05:07:06 +0000 (22:07 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2022 05:07:06 +0000 (22:07 -0700)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
(cherry picked from commit 6b485629d2e3e232460db7da3f8b18b67d4f4da8)

Co-authored-by: JasonYZ <yurenzhang2017@gmail.com>
Doc/library/http.server.rst

index 48f952daae12f5a6605f082e1a7be85a4ff5db9c..81b6bf5373b495c110c05ff18671ff7ed39f8672 100644 (file)
@@ -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
+      in :source:`Lib/http/server.py`.
 
       .. versionchanged:: 3.7
          Support of the ``'If-Modified-Since'`` header.