summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-05-16 00:10:24 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-05-16 00:10:24 (GMT)
commit2224817cdf2dd1bfd3efd8a0498f0c996fbc133e (patch)
tree755216525dd7ba3befa1557ca8107ebf0729420a /Modules
parent7b5151c1f69f164d38c5f4719f20f9723a9585e4 (diff)
downloadcpython-2224817cdf2dd1bfd3efd8a0498f0c996fbc133e.zip
cpython-2224817cdf2dd1bfd3efd8a0498f0c996fbc133e.tar.gz
cpython-2224817cdf2dd1bfd3efd8a0498f0c996fbc133e.tar.bz2
Deprecate sunaudiodev/SUNAUDIODEV for removal in 3.0.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/sunaudiodev.c4
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)