summaryrefslogtreecommitdiffstats
path: root/Lib/sunaudio.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-07-18 19:30:22 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-07-18 19:30:22 (GMT)
commit1e8fba729e218bc4b2e1ed3104f8cdbd88fdb21a (patch)
treed32c0ecfc04547cc703f981e60b106b28e8059bb /Lib/sunaudio.py
parent56af5fcab7e2ad370a1ac8985769108d281b8658 (diff)
downloadcpython-1e8fba729e218bc4b2e1ed3104f8cdbd88fdb21a.zip
cpython-1e8fba729e218bc4b2e1ed3104f8cdbd88fdb21a.tar.gz
cpython-1e8fba729e218bc4b2e1ed3104f8cdbd88fdb21a.tar.bz2
Deprecate the sunaudio module for removal in Python 3.0. The sunau module can provide similar functionality.
Diffstat (limited to 'Lib/sunaudio.py')
-rw-r--r--Lib/sunaudio.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/sunaudio.py b/Lib/sunaudio.py
index 3b0ee27..97d7332 100644
--- a/Lib/sunaudio.py
+++ b/Lib/sunaudio.py
@@ -1,4 +1,9 @@
"""Interpret sun audio headers."""
+from warnings import warnpy3k
+warnpy3k("the sunaudio module has been removed in Python 3.0; "
+ "use the sunau module instead", stacklevel=2)
+del warnpy3k
+
MAGIC = '.snd'