]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-101100: Silence Sphinx warnings when `ntpath` or `posixpath` are referenced...
authorAlex Waygood <Alex.Waygood@Gmail.com>
Thu, 7 Dec 2023 21:12:37 +0000 (21:12 +0000)
committerGitHub <noreply@github.com>
Thu, 7 Dec 2023 21:12:37 +0000 (21:12 +0000)
(cherry-picked from commit 2c3906bc4b)

Doc/conf.py
Doc/tools/.nitignore
Doc/whatsnew/3.7.rst

index 042efcea2858835fa2144d65135d242e34d8ae3c..cd890d5076a10f6d96cdef57fc10b1100c02436b 100644 (file)
@@ -152,6 +152,10 @@ nitpick_ignore = [
     # Deprecated function that was never documented:
     ('py:func', 'getargspec'),
     ('py:func', 'inspect.getargspec'),
+    # Undocumented modules that users shouldn't have to worry about
+    # (implementation details of `os.path`):
+    ('py:mod', 'ntpath'),
+    ('py:mod', 'posixpath'),
 ]
 
 # Temporary undocumented names.
index dd201152895c5f8be58d27abea50efeaab0a5110..c15f3b57f56120c546e2002a3bcf76f239259877 100644 (file)
@@ -75,7 +75,6 @@ Doc/library/multiprocessing.rst
 Doc/library/multiprocessing.shared_memory.rst
 Doc/library/numbers.rst
 Doc/library/optparse.rst
-Doc/library/os.path.rst
 Doc/library/os.rst
 Doc/library/pickle.rst
 Doc/library/pickletools.rst
index 9db6d4909300f4c3a6be12304219cf7230842143..cfc5ea800f045e36dfe80b98044cde882f82b32f 100644 (file)
@@ -2144,9 +2144,9 @@ The following features and APIs have been removed from Python 3.7:
 * Removed support of the *exclude* argument in :meth:`tarfile.TarFile.add`.
   It was deprecated in Python 2.7 and 3.2.  Use the *filter* argument instead.
 
-* The ``splitunc()`` function in the :mod:`ntpath` module was deprecated in
-  Python 3.1, and has now been removed.  Use the :func:`~os.path.splitdrive`
-  function instead.
+* The :func:`!ntpath.splitunc` function was deprecated in
+  Python 3.1, and has now been removed.  Use :func:`~os.path.splitdrive`
+  instead.
 
 * :func:`collections.namedtuple` no longer supports the *verbose* parameter
   or ``_source`` attribute which showed the generated source code for the