Skip to content

Commit fb02db7

Browse files
authored
[3.12] gh-101100: Silence Sphinx warnings when ntpath or posixpath are referenced (#112833) (#112857)
(cherry-picked from commit 2c3906b)
1 parent c0fc88f commit fb02db7

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Doc/conf.py

+4
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@
160160
# Deprecated function that was never documented:
161161
('py:func', 'getargspec'),
162162
('py:func', 'inspect.getargspec'),
163+
# Undocumented modules that users shouldn't have to worry about
164+
# (implementation details of `os.path`):
165+
('py:mod', 'ntpath'),
166+
('py:mod', 'posixpath'),
163167
]
164168

165169
# Temporary undocumented names.

Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ Doc/library/multiprocessing.shared_memory.rst
8282
Doc/library/nntplib.rst
8383
Doc/library/numbers.rst
8484
Doc/library/optparse.rst
85-
Doc/library/os.path.rst
8685
Doc/library/os.rst
8786
Doc/library/ossaudiodev.rst
8887
Doc/library/pickle.rst

Doc/whatsnew/3.7.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -2144,9 +2144,9 @@ The following features and APIs have been removed from Python 3.7:
21442144
* Removed support of the *exclude* argument in :meth:`tarfile.TarFile.add`.
21452145
It was deprecated in Python 2.7 and 3.2. Use the *filter* argument instead.
21462146

2147-
* The ``splitunc()`` function in the :mod:`ntpath` module was deprecated in
2148-
Python 3.1, and has now been removed. Use the :func:`~os.path.splitdrive`
2149-
function instead.
2147+
* The :func:`!ntpath.splitunc` function was deprecated in
2148+
Python 3.1, and has now been removed. Use :func:`~os.path.splitdrive`
2149+
instead.
21502150

21512151
* :func:`collections.namedtuple` no longer supports the *verbose* parameter
21522152
or ``_source`` attribute which showed the generated source code for the

0 commit comments

Comments
 (0)