]> 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 06:57:31 +0000 (23:57 -0700)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2022 06:57:31 +0000 (23:57 -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 8584f99d1567bc25055af30fda4ba532ea9d61b7..89a25b8cc797e0372d8bc4019bd29b01bbe00203 100644 (file)
@@ -388,8 +388,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.