]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-97822: Fix http.server documentation reference to test() function (#98027)
authorJasonYZ <yurenzhang2017@gmail.com>
Sat, 8 Oct 2022 04:46:23 +0000 (05:46 +0100)
committerGitHub <noreply@github.com>
Sat, 8 Oct 2022 04:46:23 +0000 (21:46 -0700)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@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.