Skip to content

Commit 7b00940

Browse files
authoredMay 24, 2023
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
======================

‎Lib/sndhdr.py

-271
This file was deleted.

‎Lib/test/sndhdrdata/README

-5
This file was deleted.

‎Lib/test/sndhdrdata/sndhdr.8svx

-110 Bytes
Binary file not shown.

‎Lib/test/sndhdrdata/sndhdr.aifc

-106 Bytes
Binary file not shown.

‎Lib/test/sndhdrdata/sndhdr.aiff

-108 Bytes
Binary file not shown.

‎Lib/test/sndhdrdata/sndhdr.au

-64 Bytes
Binary file not shown.

‎Lib/test/sndhdrdata/sndhdr.hcom

-256 Bytes
Binary file not shown.

‎Lib/test/sndhdrdata/sndhdr.sndt

-129 Bytes
Binary file not shown.

‎Lib/test/sndhdrdata/sndhdr.voc

-63 Bytes
Binary file not shown.

‎Lib/test/sndhdrdata/sndhdr.wav

-64 Bytes
Binary file not shown.

‎Lib/test/test_sndhdr.py

-40
This file was deleted.

‎Makefile.pre.in

-1
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,6 @@ TESTSUBDIRS= idlelib/idle_test \
21192119
test/imghdrdata \
21202120
test/leakers \
21212121
test/libregrtest \
2122-
test/sndhdrdata \
21232122
test/subprocessdata \
21242123
test/support \
21252124
test/support/_hypothesis_stubs \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
:pep:`594`: Remove the :mod:`!sndhdr` module, deprecated in Python 3.11.
2+
Patch by Victor Stinner.

‎Python/stdlib_module_names.h

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.