Skip to content

Commit 17e1fe0

Browse files
authored
gh-104773: PEP 594: Remove the nis module (#104897)
1 parent b1cb30e commit 17e1fe0

File tree

21 files changed

+13
-1023
lines changed

21 files changed

+13
-1023
lines changed

Doc/library/nis.rst

Lines changed: 0 additions & 72 deletions
This file was deleted.

Doc/library/superseded.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ backwards compatibility. They have been superseded by other modules.
1616
crypt.rst
1717
imghdr.rst
1818
msilib.rst
19-
nis.rst
2019
optparse.rst
2120
uu.rst
2221
xdrlib.rst

Doc/whatsnew/2.5.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1426,9 +1426,9 @@ complete list of changes, or look through the SVN logs for all the details.
14261426
:file:`.msi` files and CAB files. Some support for reading the :file:`.msi`
14271427
database is also included. (Contributed by Martin von Löwis.)
14281428

1429-
* The :mod:`nis` module now supports accessing domains other than the system
1430-
default domain by supplying a *domain* argument to the :func:`nis.match` and
1431-
:func:`nis.maps` functions. (Contributed by Ben Bell.)
1429+
* The :mod:`!nis` module now supports accessing domains other than the system
1430+
default domain by supplying a *domain* argument to the :func:`!nis.match` and
1431+
:func:`!nis.maps` functions. (Contributed by Ben Bell.)
14321432

14331433
* The :mod:`operator` module's :func:`itemgetter` and :func:`attrgetter`
14341434
functions now support multiple fields. A call such as

Doc/whatsnew/3.11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ Modules
17331733
+---------------------+---------------------+---------------------+---------------------+---------------------+
17341734
| :mod:`aifc` | :mod:`chunk` | :mod:`msilib` | :mod:`!pipes` | :mod:`!telnetlib` |
17351735
+---------------------+---------------------+---------------------+---------------------+---------------------+
1736-
| :mod:`audioop` | :mod:`crypt` | :mod:`nis` | :mod:`!sndhdr` | :mod:`uu` |
1736+
| :mod:`audioop` | :mod:`crypt` | :mod:`!nis` | :mod:`!sndhdr` | :mod:`uu` |
17371737
+---------------------+---------------------+---------------------+---------------------+---------------------+
17381738
| :mod:`!cgi` | :mod:`imghdr` | :mod:`!nntplib` | :mod:`!spwd` | :mod:`xdrlib` |
17391739
+---------------------+---------------------+---------------------+---------------------+---------------------+

Doc/whatsnew/3.12.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ Modules (see :pep:`594`):
895895
* :mod:`imghdr`
896896
* :mod:`!mailcap`
897897
* :mod:`msilib`
898-
* :mod:`nis`
898+
* :mod:`!nis`
899899
* :mod:`!nntplib`
900900
* :mod:`!ossaudiodev`
901901
* :mod:`!pipes`

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ Removed
192192
instead.
193193
(Contributed by Victor Stinner in :gh:`104773`.)
194194

195+
* :pep:`594`: Remove the :mod:`!nis` module, deprecated in Python 3.11.
196+
(Contributed by Victor Stinner in :gh:`104773`.)
197+
195198

196199
Porting to Python 3.13
197200
======================

Lib/test/test_nis.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

Misc/NEWS.d/3.10.0a1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ Fix refleak in _Py_fopen_obj() when PySys_Audit() fails
714714
.. nonce: tzMy7m
715715
.. section: Core and Builtins
716716
717-
Add a state to the :mod:`nis` module (:pep:`3121`) and apply the multiphase
717+
Add a state to the :mod:`!nis` module (:pep:`3121`) and apply the multiphase
718718
initialization. Patch by Dong-hee Na.
719719

720720
..
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:pep:`594`: Remove the :mod:`!nis` module, deprecated in Python 3.11. Patch
2+
by Victor Stinner.

Modules/Setup

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ PYTHONPATH=$(COREPYTHONPATH)
191191
# Modules with UNIX dependencies that require external libraries
192192

193193
#_crypt _cryptmodule.c -lcrypt
194-
#nis nismodule.c -I/usr/include/tirpc -lnsl -ltirpc
195194

196195
# Modules that require external libraries.
197196

0 commit comments

Comments
 (0)