gh-91217: deprecate sunau (GH-91866)

This commit is contained in:
Brett Cannon 2022-04-25 16:26:43 -07:00 committed by GitHub
parent cd5726fe67
commit d174ebe91e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 2 deletions

View file

@ -1068,6 +1068,7 @@ Deprecated
* :mod:`pipes`
* :mod:`sndhdr`
* :mod:`spwd`
* :mod:`sunau`
(Contributed by Brett Cannon in :issue:`47061`.)

View file

@ -106,6 +106,8 @@ is destroyed.
from collections import namedtuple
import warnings
warnings._deprecated(__name__, remove=(3, 13))
_sunau_params = namedtuple('_sunau_params',
'nchannels sampwidth framerate nframes comptype compname')

View file

@ -9,10 +9,10 @@ with warnings.catch_warnings():
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

View file

@ -3,9 +3,9 @@ from test import audiotests
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")

View file

@ -0,0 +1 @@
Deprecate the sunau module.