summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-11 00:50:51 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-11 00:50:51 (GMT)
commitdf0a7170378f8fe22589e5fa3ec4f703b2e09d60 (patch)
treea40ac176ed1e2ed07a1a02804665e4cf88160ad3 /Modules
parent27508d4eb98fba5e092a742fc241760b5f796985 (diff)
downloadcpython-df0a7170378f8fe22589e5fa3ec4f703b2e09d60.zip
cpython-df0a7170378f8fe22589e5fa3ec4f703b2e09d60.tar.gz
cpython-df0a7170378f8fe22589e5fa3ec4f703b2e09d60.tar.bz2
The linuxaudidev module has been deprecated for removal in Python 3.0.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/linuxaudiodev.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/linuxaudiodev.c b/Modules/linuxaudiodev.c
index 730ec0c..80077c6 100644
--- a/Modules/linuxaudiodev.c
+++ b/Modules/linuxaudiodev.c
@@ -469,6 +469,10 @@ void
initlinuxaudiodev(void)
{
PyObject *m;
+
+ if (PyErr_WarnPy3k("the linuxaudiodev module has been removed in "
+ "Python 3.0; use the ossaudiodev module instead", 2) < 0)
+ return;
m = Py_InitModule("linuxaudiodev", linuxaudiodev_methods);
if (m == NULL)