commit | 2224817cdf2dd1bfd3efd8a0498f0c996fbc133e | [log] [tgz] |
---|---|---|
author | Brett Cannon <bcannon@gmail.com> | Fri May 16 00:10:24 2008 +0000 |
committer | Brett Cannon <bcannon@gmail.com> | Fri May 16 00:10:24 2008 +0000 |
tree | 755216525dd7ba3befa1557ca8107ebf0729420a | |
parent | 7b5151c1f69f164d38c5f4719f20f9723a9585e4 [diff] [blame] |
Deprecate sunaudiodev/SUNAUDIODEV for removal in 3.0.
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 @@ 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)