summaryrefslogtreecommitdiff
path: root/Lib/sndhdr.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-22 15:48:03 -0700
committerGitHub <noreply@github.com>2022-04-22 15:48:03 -0700
commite7929cba169349776e78ff86143b24d0122b2cdd (patch)
treeadab4f0c114c25ab829cadbbdb5d4bcbe20a2d6e /Lib/sndhdr.py
parent5576ddbbbc9c1d7a7819abc961e5d604ae0f7dd7 (diff)
downloadcpython-git-e7929cba169349776e78ff86143b24d0122b2cdd.tar.gz
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>
Diffstat (limited to 'Lib/sndhdr.py')
-rw-r--r--Lib/sndhdr.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/sndhdr.py b/Lib/sndhdr.py
index a63b6fd202..98a7834482 100644
--- a/Lib/sndhdr.py
+++ b/Lib/sndhdr.py
@@ -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')