Skip to content

Commit 7b00940

Browse files
authored
gh-104773: PEP 594: Remove the sndhdr module (#104774)
Remove the Lib/test/sndhdrdata/ directory.
1 parent 08d5923 commit 7b00940

20 files changed

+10
-426
lines changed

.gitattributes

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
*.zip binary
1919

2020
# Specific binary files
21-
Lib/test/sndhdrdata/sndhdr.* binary
2221
PC/classicAppCompat.* binary
2322

2423
# Text files that should not be subject to eol conversion

Doc/library/sndhdr.rst

-104
This file was deleted.

Doc/library/superseded.rst

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ backwards compatibility. They have been superseded by other modules.
2222
optparse.rst
2323
ossaudiodev.rst
2424
pipes.rst
25-
sndhdr.rst
2625
spwd.rst
2726
sunau.rst
2827
uu.rst

Doc/whatsnew/3.11.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ Modules
17331733
+---------------------+---------------------+---------------------+---------------------+---------------------+
17341734
| :mod:`aifc` | :mod:`chunk` | :mod:`msilib` | :mod:`pipes` | :mod:`!telnetlib` |
17351735
+---------------------+---------------------+---------------------+---------------------+---------------------+
1736-
| :mod:`audioop` | :mod:`crypt` | :mod:`nis` | :mod:`sndhdr` | :mod:`uu` |
1736+
| :mod:`audioop` | :mod:`crypt` | :mod:`nis` | :mod:`!sndhdr` | :mod:`uu` |
17371737
+---------------------+---------------------+---------------------+---------------------+---------------------+
17381738
| :mod:`!cgi` | :mod:`imghdr` | :mod:`nntplib` | :mod:`spwd` | :mod:`xdrlib` |
17391739
+---------------------+---------------------+---------------------+---------------------+---------------------+

Doc/whatsnew/3.12.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ Modules (see :pep:`594`):
816816
* :mod:`nntplib`
817817
* :mod:`ossaudiodev`
818818
* :mod:`pipes`
819-
* :mod:`sndhdr`
819+
* :mod:`!sndhdr`
820820
* :mod:`spwd`
821821
* :mod:`sunau`
822822
* :mod:`!telnetlib`

Doc/whatsnew/3.13.rst

+6
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,12 @@ Removed
147147

148148
(Contributed by Victor Stinner in :gh:`104773`.)
149149

150+
* :pep:`594`: Remove the :mod:`!sndhdr` module, deprecated in Python 3.11: use
151+
the projects `filetype <https://pypi.org/project/filetype/>`_, `puremagic
152+
<https://pypi.org/project/puremagic/>`_, or `python-magic
153+
<https://pypi.org/project/python-magic/>`_ instead.
154+
(Contributed by Victor Stinner in :gh:`104773`.)
155+
150156

151157
Porting to Python 3.13
152158
======================

0 commit comments

Comments
 (0)