Deprecate audioop (GH-32392)

This commit is contained in:
Brett Cannon 2022-04-07 12:27:35 -07:00 committed by GitHub
parent 1df4298b62
commit 87eec70d97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 68 additions and 26 deletions

View file

@ -1975,5 +1975,12 @@ static struct PyModuleDef audioopmodule = {
PyMODINIT_FUNC
PyInit_audioop(void)
{
if (PyErr_WarnEx(PyExc_DeprecationWarning,
"'audioop' is deprecated and slated for removal in "
"Python 3.13",
7)) {
return NULL;
}
return PyModuleDef_Init(&audioopmodule);
}