summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2022-04-22 22:48:03 (GMT)
committerGitHub <noreply@github.com>2022-04-22 22:48:03 (GMT)
commite7929cba169349776e78ff86143b24d0122b2cdd (patch)
treeadab4f0c114c25ab829cadbbdb5d4bcbe20a2d6e /Doc
parent5576ddbbbc9c1d7a7819abc961e5d604ae0f7dd7 (diff)
downloadcpython-e7929cba169349776e78ff86143b24d0122b2cdd.zip
cpython-e7929cba169349776e78ff86143b24d0122b2cdd.tar.gz
cpython-e7929cba169349776e78ff86143b24d0122b2cdd.tar.bz2
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 'Doc')
-rw-r--r--Doc/library/email.mime.rst2
-rw-r--r--Doc/whatsnew/3.11.rst1
2 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/email.mime.rst b/Doc/library/email.mime.rst
index ab4f7bc..3fe5fe8 100644
--- a/Doc/library/email.mime.rst
+++ b/Doc/library/email.mime.rst
@@ -146,7 +146,7 @@ Here are the classes:
A subclass of :class:`~email.mime.nonmultipart.MIMENonMultipart`, the
:class:`MIMEAudio` class is used to create MIME message objects of major type
:mimetype:`audio`. *_audiodata* is a string containing the raw audio data. If
- this data can be decoded by the standard Python module :mod:`sndhdr`, then the
+ this data can be decoded as au, wav, aiff, or aifc, then the
subtype will be automatically included in the :mailheader:`Content-Type` header.
Otherwise you can explicitly specify the audio subtype via the *_subtype*
argument. If the minor type could not be guessed and *_subtype* was not given,
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index 75ea70b..653d32a 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -920,6 +920,7 @@ Deprecated
* :mod:`nntplib`
* :mod:`ossaudiodev`
* :mod:`pipes`
+ * :mod:`sndhdr`
(Contributed by Brett Cannon in :issue:`47061`.)