The linuxaudidev module has been deprecated for removal in Python 3.0.

This commit is contained in:
Brett Cannon 2008-05-11 00:50:51 +00:00
parent 27508d4eb9
commit df0a717037
5 changed files with 10 additions and 2 deletions

View file

@ -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)