diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-05-11 00:50:51 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-05-11 00:50:51 (GMT) |
commit | df0a7170378f8fe22589e5fa3ec4f703b2e09d60 (patch) | |
tree | a40ac176ed1e2ed07a1a02804665e4cf88160ad3 /Modules | |
parent | 27508d4eb98fba5e092a742fc241760b5f796985 (diff) | |
download | cpython-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.c | 4 |
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) |