mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
gh-91217: deprecate-sndhdr (#91806)
Also inline necessary functionality from `sndhdr` into `email.mime.audio` for `MIMEAudio`. Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
5576ddbbbc
commit
e7929cba16
6 changed files with 49 additions and 16 deletions
|
@ -27,13 +27,16 @@ option -r tells it to recurse down directories found inside
|
|||
explicitly given directories.
|
||||
"""
|
||||
|
||||
import warnings
|
||||
|
||||
warnings._deprecated(__name__, remove=(3, 13))
|
||||
|
||||
# The file structure is top-down except that the test program and its
|
||||
# subroutine come last.
|
||||
|
||||
__all__ = ['what', 'whathdr']
|
||||
|
||||
from collections import namedtuple
|
||||
import warnings
|
||||
|
||||
SndHeaders = namedtuple('SndHeaders',
|
||||
'filetype framerate nchannels nframes sampwidth')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue