summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-07 19:27:35 (GMT)
committerGitHub <noreply@github.com>2022-04-07 19:27:35 (GMT)
commit87eec70d97b250f820325b4f1b4f781b443b5180 (patch)
treef8e20384e332b2c5743c134d87a82070cee87ff7 /Modules
parent1df4298b62fcc124ba9de861f8dc8239ad72cde2 (diff)
downloadcpython-87eec70d97b250f820325b4f1b4f781b443b5180.zip
cpython-87eec70d97b250f820325b4f1b4f781b443b5180.tar.gz
cpython-87eec70d97b250f820325b4f1b4f781b443b5180.tar.bz2
Deprecate audioop (GH-32392)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/audioop.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/audioop.c b/Modules/audioop.c
index 32237ca..d74e634 100644
--- a/Modules/audioop.c
+++ b/Modules/audioop.c
@@ -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);
}