commit | df0a7170378f8fe22589e5fa3ec4f703b2e09d60 | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Sun May 11 00:50:51 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Sun May 11 00:50:51 2008 +0000 |
tree | a40ac176ed1e2ed07a1a02804665e4cf88160ad3 | |
parent | 27508d4eb98fba5e092a742fc241760b5f796985 [diff] [blame] |
The linuxaudidev module has been deprecated for removal in Python 3.0.
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 @@ 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)