diff options
author | Brett Cannon <brett@python.org> | 2022-04-16 20:17:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-16 20:17:30 (GMT) |
commit | 9f06ff96ccbda25c447b6a6f94082ea1e7784d96 (patch) | |
tree | 0203f2cc2df6eb0544641c6fc44f7e8cc865a361 /Modules/nismodule.c | |
parent | 304f5b63e904c3ab0b746ef7ad58c5c2ff0154a8 (diff) | |
download | cpython-9f06ff96ccbda25c447b6a6f94082ea1e7784d96.zip cpython-9f06ff96ccbda25c447b6a6f94082ea1e7784d96.tar.gz cpython-9f06ff96ccbda25c447b6a6f94082ea1e7784d96.tar.bz2 |
gh-91217: deprecate nis (GH-91606)
Automerge-Triggered-By: GH:brettcannon
Diffstat (limited to 'Modules/nismodule.c')
-rw-r--r-- | Modules/nismodule.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/nismodule.c b/Modules/nismodule.c index cdda1a6..948f756 100644 --- a/Modules/nismodule.c +++ b/Modules/nismodule.c @@ -524,5 +524,11 @@ static struct PyModuleDef nismodule = { PyMODINIT_FUNC PyInit_nis(void) { + if (PyErr_WarnEx(PyExc_DeprecationWarning, + "'nis' is deprecated and slated for removal in " + "Python 3.13", + 7)) { + return NULL; + } return PyModuleDef_Init(&nismodule); } |