Skip to content

Commit c445425

Browse files
committed
[3.11] pythongh-101100: Silence Sphinx warnings when ntpath or posixpath are referenced (python#112833)
(cherry-picked from commit 2c3906b)
1 parent a18201b commit c445425

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

Doc/conf.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@
152152
# Deprecated function that was never documented:
153153
('py:func', 'getargspec'),
154154
('py:func', 'inspect.getargspec'),
155+
# Undocumented modules that users shouldn't have to worry about
156+
# (implementation details of `os.path`):
157+
('py:mod', 'ntpath'),
158+
('py:mod', 'posixpath'),
155159
]
156160

157161
# Temporary undocumented names.

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ Doc/library/multiprocessing.rst
7575
Doc/library/multiprocessing.shared_memory.rst
7676
Doc/library/numbers.rst
7777
Doc/library/optparse.rst
78-
Doc/library/os.path.rst
7978
Doc/library/os.rst
8079
Doc/library/pickle.rst
8180
Doc/library/pickletools.rst

Doc/whatsnew/3.7.rst

Lines changed: 3 additions & 3 deletions
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)