Skip to content

Commit a5e0f5b

Browse files
authored
gh-104773: PEP 594: Remove the sunau module (#104863)
* Remove Lib/test/audiodata/pluck-*.au files. * Remove Lib/test/audiotest.au file.
1 parent 8e5b3b9 commit a5e0f5b

21 files changed

+16
-981
lines changed

Doc/library/sunau.rst

Lines changed: 0 additions & 274 deletions
This file was deleted.

Doc/library/superseded.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,5 @@ backwards compatibility. They have been superseded by other modules.
2121
nntplib.rst
2222
optparse.rst
2323
spwd.rst
24-
sunau.rst
2524
uu.rst
2625
xdrlib.rst

Doc/tools/.nitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ Doc/library/stdtypes.rst
207207
Doc/library/string.rst
208208
Doc/library/struct.rst
209209
Doc/library/subprocess.rst
210-
Doc/library/sunau.rst
211210
Doc/library/sys.rst
212211
Doc/library/sys_path_init.rst
213212
Doc/library/sysconfig.rst

Doc/whatsnew/3.11.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1737,7 +1737,7 @@ Modules
17371737
+---------------------+---------------------+---------------------+---------------------+---------------------+
17381738
| :mod:`!cgi` | :mod:`imghdr` | :mod:`nntplib` | :mod:`spwd` | :mod:`xdrlib` |
17391739
+---------------------+---------------------+---------------------+---------------------+---------------------+
1740-
| :mod:`!cgitb` | :mod:`mailcap` | :mod:`!ossaudiodev` | :mod:`sunau` | |
1740+
| :mod:`!cgitb` | :mod:`mailcap` | :mod:`!ossaudiodev` | :mod:`!sunau` | |
17411741
+---------------------+---------------------+---------------------+---------------------+---------------------+
17421742

17431743
(Contributed by Brett Cannon in :issue:`47061` and Victor Stinner in

Doc/whatsnew/3.12.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ Modules (see :pep:`594`):
901901
* :mod:`!pipes`
902902
* :mod:`!sndhdr`
903903
* :mod:`spwd`
904-
* :mod:`sunau`
904+
* :mod:`!sunau`
905905
* :mod:`!telnetlib`
906906
* :mod:`uu`
907907
* :mod:`xdrlib`

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@ Removed
161161
use the `pygame project <https://www.pygame.org/>`_ for audio playback.
162162
(Contributed by Victor Stinner in :gh:`104780`.)
163163

164+
* :pep:`594`: Remove the :mod:`!sunau` module, deprecated in Python 3.11.
165+
(Contributed by Victor Stinner in :gh:`104773`.)
166+
164167

165168
Porting to Python 3.13
166169
======================

Doc/whatsnew/3.4.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,10 +1528,10 @@ work on Windows. This change was actually inadvertently made in 3.3.4.
15281528
sunau
15291529
-----
15301530

1531-
The :meth:`~sunau.getparams` method now returns a namedtuple rather than a
1531+
The :meth:`~!sunau.getparams` method now returns a namedtuple rather than a
15321532
plain tuple. (Contributed by Claudiu Popa in :issue:`18901`.)
15331533

1534-
:meth:`sunau.open` now supports the context management protocol: when used in a
1534+
:meth:`!sunau.open` now supports the context management protocol: when used in a
15351535
:keyword:`with` block, the ``close`` method of the returned object will be
15361536
called automatically at the end of the block. (Contributed by Serhiy Storchaka
15371537
in :issue:`18878`.)
@@ -1540,8 +1540,8 @@ in :issue:`18878`.)
15401540
support for writing 24 sample using the module. (Contributed by
15411541
Serhiy Storchaka in :issue:`19261`.)
15421542

1543-
The :meth:`~sunau.AU_write.writeframesraw` and
1544-
:meth:`~sunau.AU_write.writeframes` methods now accept any :term:`bytes-like
1543+
The :meth:`~!sunau.AU_write.writeframesraw` and
1544+
:meth:`~!sunau.AU_write.writeframes` methods now accept any :term:`bytes-like
15451545
object`. (Contributed by Serhiy Storchaka in :issue:`8311`.)
15461546

15471547

Doc/whatsnew/3.7.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2061,8 +2061,8 @@ ssl
20612061
sunau
20622062
-----
20632063

2064-
:func:`sunau.openfp` has been deprecated and will be removed in Python 3.9.
2065-
Use :func:`sunau.open` instead.
2064+
:func:`!sunau.openfp` has been deprecated and will be removed in Python 3.9.
2065+
Use :func:`!sunau.open` instead.
20662066
(Contributed by Brian Curtin in :issue:`31985`.)
20672067

20682068

0 commit comments

Comments
 (0)