Skip to content

Commit f66be6b

Browse files
authored
gh-104773: PEP 594: Remove the audioop module (#104937)
1 parent 036da3b commit f66be6b

24 files changed

+14
-4255
lines changed

Diff for: Doc/library/audioop.rst

-287
This file was deleted.

Diff for: Doc/library/superseded.rst

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ backwards compatibility. They have been superseded by other modules.
1010

1111
.. toctree::
1212

13-
audioop.rst
1413
chunk.rst
1514
imghdr.rst
1615
optparse.rst

Diff for: Doc/license.rst

-28
Original file line numberDiff line numberDiff line change
@@ -988,31 +988,3 @@ https://www.w3.org/TR/xml-c14n2-testcases/ and is distributed under the
988988
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
989989
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
990990
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
991-
992-
993-
Audioop
994-
-------
995-
996-
The audioop module uses the code base in g771.c file of the SoX project::
997-
998-
Programming the AdLib/Sound Blaster
999-
FM Music Chips
1000-
Version 2.0 (24 Feb 1992)
1001-
Copyright (c) 1991, 1992 by Jeffrey S. Lee
1002-
jlee@smylex.uucp
1003-
Warranty and Copyright Policy
1004-
This document is provided on an "as-is" basis, and its author makes
1005-
no warranty or representation, express or implied, with respect to
1006-
its quality performance or fitness for a particular purpose. In no
1007-
event will the author of this document be liable for direct, indirect,
1008-
special, incidental, or consequential damages arising out of the use
1009-
or inability to use the information contained within. Use of this
1010-
document is at your own risk.
1011-
This file may be used and copied freely so long as the applicable
1012-
copyright notices are retained, and no modifications are made to the
1013-
text of the document. No money shall be charged for its distribution
1014-
beyond reasonable shipping, handling and duplication costs, nor shall
1015-
proprietary changes be made to this document so that it cannot be
1016-
distributed freely. This document may not be included in published
1017-
material or commercial packages without the written consent of its
1018-
author.

Diff for: Doc/tools/.nitignore

-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ Doc/library/asyncio-policy.rst
8484
Doc/library/asyncio-stream.rst
8585
Doc/library/asyncio-subprocess.rst
8686
Doc/library/asyncio-task.rst
87-
Doc/library/audioop.rst
8887
Doc/library/bdb.rst
8988
Doc/library/bisect.rst
9089
Doc/library/bz2.rst

Diff for: Doc/whatsnew/2.5.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ Here's a partial list of the most notable changes, sorted alphabetically by
12221222
module name. Consult the :file:`Misc/NEWS` file in the source tree for a more
12231223
complete list of changes, or look through the SVN logs for all the details.
12241224

1225-
* The :mod:`audioop` module now supports the a-LAW encoding, and the code for
1225+
* The :mod:`!audioop` module now supports the a-LAW encoding, and the code for
12261226
u-LAW encoding has been improved. (Contributed by Lars Immisch.)
12271227

12281228
* The :mod:`codecs` module gained support for incremental codecs. The

Diff for: 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
+---------------------+---------------------+---------------------+---------------------+---------------------+

Diff for: Doc/whatsnew/3.12.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ and will be removed in Python 3.13.
919919
Modules (see :pep:`594`):
920920

921921
* :mod:`!aifc`
922-
* :mod:`audioop`
922+
* :mod:`!audioop`
923923
* :mod:`!cgi`
924924
* :mod:`!cgitb`
925925
* :mod:`chunk`

Diff for: Doc/whatsnew/3.13.rst

+3
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,9 @@ Removed
224224
* :pep:`594`: Remove the :mod:`!aifc` module, deprecated in Python 3.11.
225225
(Contributed by Victor Stinner in :gh:`104773`.)
226226

227+
* :pep:`594`: Remove the :mod:`!audioop` module, deprecated in Python 3.11.
228+
(Contributed by Victor Stinner in :gh:`104773`.)
229+
227230

228231
Porting to Python 3.13
229232
======================

Diff for: Doc/whatsnew/3.4.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -629,14 +629,14 @@ by Lucas Maystre in :issue:`11175`.)
629629
audioop
630630
-------
631631

632-
:mod:`audioop` now supports 24-bit samples. (Contributed by Serhiy Storchaka
632+
:mod:`!audioop` now supports 24-bit samples. (Contributed by Serhiy Storchaka
633633
in :issue:`12866`.)
634634

635-
New :func:`~audioop.byteswap` function converts big-endian samples to
635+
New :func:`~!audioop.byteswap` function converts big-endian samples to
636636
little-endian and vice versa. (Contributed by Serhiy Storchaka in
637637
:issue:`19641`.)
638638

639-
All :mod:`audioop` functions now accept any :term:`bytes-like object`. Strings
639+
All :mod:`!audioop` functions now accept any :term:`bytes-like object`. Strings
640640
are not accepted: they didn't work before, now they raise an error right away.
641641
(Contributed by Serhiy Storchaka in :issue:`16685`.)
642642

@@ -2434,7 +2434,7 @@ Changes in the Python API
24342434
matched the input type, so if your code was depending on the return value
24352435
being, say, a ``bytearray``, you will need to change your code.
24362436

2437-
* :mod:`audioop` functions now raise an error immediately if passed string
2437+
* :mod:`!audioop` functions now raise an error immediately if passed string
24382438
input, instead of failing randomly later on (:issue:`16685`).
24392439

24402440
* The new *convert_charrefs* argument to :class:`~html.parser.HTMLParser`

0 commit comments

Comments
 (0)