diff options
Diffstat (limited to 'Modules/sunaudiodev.c')
-rw-r--r-- | Modules/sunaudiodev.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/sunaudiodev.c b/Modules/sunaudiodev.c index 9f4c344..285dc66 100644 --- a/Modules/sunaudiodev.c +++ b/Modules/sunaudiodev.c @@ -452,6 +452,10 @@ void initsunaudiodev(void) { PyObject *m, *d; + + if (PyErr_WarnPy3k("the sunaudiodev module has been removed in " + "Python 3.0", 2) < 0) + return; m = Py_InitModule("sunaudiodev", sunaudiodev_methods); if (m == NULL) |