Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Doc/whatsnew/3.11.rst
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,7 @@ Deprecated
* :mod:`pipes`
* :mod:`sndhdr`
* :mod:`spwd`
* :mod:`sunau`

(Contributed by Brett Cannon in :issue:`47061`.)

Expand Down
2 changes: 2 additions & 0 deletions Lib/sunau.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@
from collections import namedtuple
import warnings

warnings._deprecated(__name__, remove=(3, 13))


_sunau_params = namedtuple('_sunau_params',
'nchannels sampwidth framerate nframes comptype compname')
Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_ossaudiodev.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
warnings.simplefilter("ignore", DeprecationWarning)
ossaudiodev = import_helper.import_module('ossaudiodev')
audioop = warnings_helper.import_deprecated('audioop')
sunau = warnings_helper.import_deprecated('sunau')

import errno
import sys
import sunau
import time
import unittest

Expand Down
2 changes: 1 addition & 1 deletion Lib/test/test_sunau.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
import io
import struct
import sys
import sunau
from test.support import warnings_helper

sunau = warnings_helper.import_deprecated("sunau")
audioop = warnings_helper.import_deprecated("audioop")


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Deprecate the sunau module.