summaryrefslogtreecommitdiffstats
path: root/Modules/ossaudiodev.c
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-17 22:02:36 (GMT)
committerGitHub <noreply@github.com>2022-04-17 22:02:36 (GMT)
commitceea0715df33ae6dc3931670b4b749432d4e9707 (patch)
tree9ec3ddb969b2705c66ef25d208b13ead72430b94 /Modules/ossaudiodev.c
parentd5a69571f586080af4c29671c47f9c4bc671af7f (diff)
downloadcpython-ceea0715df33ae6dc3931670b4b749432d4e9707.zip
cpython-ceea0715df33ae6dc3931670b4b749432d4e9707.tar.gz
cpython-ceea0715df33ae6dc3931670b4b749432d4e9707.tar.bz2
gh-91217: deprecate ossaudiodev (GH-91641)
Automerge-Triggered-By: GH:brettcannon
Diffstat (limited to 'Modules/ossaudiodev.c')
-rw-r--r--Modules/ossaudiodev.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/ossaudiodev.c b/Modules/ossaudiodev.c
index 172a6e4..3926831 100644
--- a/Modules/ossaudiodev.c
+++ b/Modules/ossaudiodev.c
@@ -1117,6 +1117,13 @@ PyInit_ossaudiodev(void)
{
PyObject *m;
+ if (PyErr_WarnEx(PyExc_DeprecationWarning,
+ "'ossaudiodev' is deprecated and slated for removal in "
+ "Python 3.13",
+ 7)) {
+ return NULL;
+ }
+
if (PyType_Ready(&OSSAudioType) < 0)
return NULL;