gh-104773: PEP 594: Remove the sndhdr module by vstinner · Pull Request #104774 · python/cpython · GitHub
Skip to content

gh-104773: PEP 594: Remove the sndhdr module - #104774

Merged
vstinner merged 1 commit into
python:mainfrom
vstinner:remove_sndhdr
May 24, 2023
Merged

vstinner merged 1 commit into
python:mainfrom
vstinner:remove_sndhdr

Conversation

@vstinner

@vstinner vstinner commented May 22, 2023

Copy link
Copy Markdown
Member

@vstinner

Copy link
Copy Markdown
Member Author

@vstinner

Copy link
Copy Markdown
Member Author

Fix the Docs CI: Warning: (...)/Doc/whatsnew/3.12.rst:819: WARNING: py:mod reference target not found: sndhdr.

@hugovk hugovk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please could you also update the refs in 3.11.rst?

For example with an exclamation mark:

* :pep:`594` led to the deprecations of the following modules
  slated for removal in Python 3.13:

  +---------------------+---------------------+---------------------+---------------------+---------------------+
  | :mod:`aifc`         | :mod:`chunk`        | :mod:`msilib`       | :mod:`pipes`        | :mod:`telnetlib`    |
  +---------------------+---------------------+---------------------+---------------------+---------------------+
  | :mod:`audioop`      | :mod:`crypt`        | :mod:`nis`          | :mod:`!sndhdr`      | :mod:`uu`           |
  +---------------------+---------------------+---------------------+---------------------+---------------------+
  | :mod:`cgi`          | :mod:`imghdr`       | :mod:`nntplib`      | :mod:`spwd`         | :mod:`xdrlib`       |
  +---------------------+---------------------+---------------------+---------------------+---------------------+
  | :mod:`cgitb`        | :mod:`mailcap`      | :mod:`ossaudiodev`  | :mod:`sunau`        |                     |
  +---------------------+---------------------+---------------------+---------------------+---------------------+

You could do them all in a single commit/PR, to avoid lots of conflicts later.

And:

diff --git a/Doc/whatsnew/3.5.rst b/Doc/whatsnew/3.5.rst
index 14b6425cea..a1b6e18950 100644
--- a/Doc/whatsnew/3.5.rst
+++ b/Doc/whatsnew/3.5.rst
@@ -1714,7 +1714,7 @@ support :rfc:`6531` (SMTPUTF8).
 sndhdr
 ------
 
-The :func:`~sndhdr.what` and :func:`~sndhdr.whathdr` functions  now return
+The ``what`` and ``whathdr`` functions now return
 a :func:`~collections.namedtuple`.  (Contributed by Claudiu Popa in
 :issue:`18615`.)

Comment thread Doc/whatsnew/3.12.rst Outdated
Comment thread Doc/whatsnew/3.13.rst
Remove the Lib/test/sndhdrdata/ directory.
@vstinner

Copy link
Copy Markdown
Member Author

@vstinner
vstinner enabled auto-merge (squash) May 24, 2023 09:18
@vstinner
vstinner merged commit 7b00940 into python:main May 24, 2023
@vstinner
vstinner deleted the remove_sndhdr branch May 24, 2023 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants