mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Deprecate audioop (GH-32392)
This commit is contained in:
parent
1df4298b62
commit
87eec70d97
12 changed files with 68 additions and 26 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue