mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
gh-91217: deprecate sunau (GH-91866)
This commit is contained in:
parent
cd5726fe67
commit
d174ebe91e
5 changed files with 6 additions and 2 deletions
|
|
@ -1068,6 +1068,7 @@ Deprecated
|
|||
* :mod:`pipes`
|
||||
* :mod:`sndhdr`
|
||||
* :mod:`spwd`
|
||||
* :mod:`sunau`
|
||||
|
||||
(Contributed by Brett Cannon in :issue:`47061`.)
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Deprecate the sunau module.
|
||||
Loading…
Add table
Add a link
Reference in a new issue