gh-109975: Add list of 3.13 removed library replacements (#127816)
Add list of 3.13 removed library replacements
This commit is contained in:
parent
fc3d400165
commit
bab8918f9a
@ -1499,8 +1499,20 @@ All of the following modules were deprecated in Python 3.11,
|
|||||||
and are now removed:
|
and are now removed:
|
||||||
|
|
||||||
* :mod:`!aifc`
|
* :mod:`!aifc`
|
||||||
|
|
||||||
|
* :pypi:`standard-aifc`:
|
||||||
|
Use the redistribution of ``aifc`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!audioop`
|
* :mod:`!audioop`
|
||||||
|
|
||||||
|
* :pypi:`audioop-lts`:
|
||||||
|
Use ``audioop-lts`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!chunk`
|
* :mod:`!chunk`
|
||||||
|
|
||||||
|
* :pypi:`standard-chunk`:
|
||||||
|
Use the redistribution of ``chunk`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!cgi` and :mod:`!cgitb`
|
* :mod:`!cgi` and :mod:`!cgitb`
|
||||||
|
|
||||||
* :class:`!cgi.FieldStorage` can typically be replaced with
|
* :class:`!cgi.FieldStorage` can typically be replaced with
|
||||||
@ -1531,6 +1543,9 @@ and are now removed:
|
|||||||
For example, the :class:`email.message.EmailMessage`
|
For example, the :class:`email.message.EmailMessage`
|
||||||
and :class:`email.message.Message` classes.
|
and :class:`email.message.Message` classes.
|
||||||
|
|
||||||
|
* :pypi:`standard-cgi`: and :pypi:`standard-cgitb`:
|
||||||
|
Use the redistribution of ``cgi`` and ``cgitb`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!crypt` and the private :mod:`!_crypt` extension.
|
* :mod:`!crypt` and the private :mod:`!_crypt` extension.
|
||||||
The :mod:`hashlib` module may be an appropriate replacement
|
The :mod:`hashlib` module may be an appropriate replacement
|
||||||
when simply hashing a value is required.
|
when simply hashing a value is required.
|
||||||
@ -1549,6 +1564,8 @@ and are now removed:
|
|||||||
Fork of the :mod:`!crypt` module,
|
Fork of the :mod:`!crypt` module,
|
||||||
wrapper to the :manpage:`crypt_r(3)` library call
|
wrapper to the :manpage:`crypt_r(3)` library call
|
||||||
and associated functionality.
|
and associated functionality.
|
||||||
|
* :pypi:`standard-crypt` and :pypi:`deprecated-crypt-alternative`:
|
||||||
|
Use the redistribution of ``crypt`` and reimplementation of ``_crypt`` libraries from PyPI.
|
||||||
|
|
||||||
* :mod:`!imghdr`:
|
* :mod:`!imghdr`:
|
||||||
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
|
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
|
||||||
@ -1556,30 +1573,65 @@ and are now removed:
|
|||||||
For example, the :func:`!puremagic.what` function can be used
|
For example, the :func:`!puremagic.what` function can be used
|
||||||
to replace the :func:`!imghdr.what` function for all file formats
|
to replace the :func:`!imghdr.what` function for all file formats
|
||||||
that were supported by :mod:`!imghdr`.
|
that were supported by :mod:`!imghdr`.
|
||||||
|
|
||||||
|
* :pypi:`standard-imghdr`:
|
||||||
|
Use the redistribution of ``imghdr`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!mailcap`:
|
* :mod:`!mailcap`:
|
||||||
Use the :mod:`mimetypes` module instead.
|
Use the :mod:`mimetypes` module instead.
|
||||||
|
|
||||||
|
* :pypi:`standard-mailcap`:
|
||||||
|
Use the redistribution of ``mailcap`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!msilib`
|
* :mod:`!msilib`
|
||||||
* :mod:`!nis`
|
* :mod:`!nis`
|
||||||
* :mod:`!nntplib`:
|
* :mod:`!nntplib`:
|
||||||
Use the :pypi:`pynntp` library from PyPI instead.
|
Use the :pypi:`pynntp` library from PyPI instead.
|
||||||
|
|
||||||
|
* :pypi:`standard-nntplib`:
|
||||||
|
Use the redistribution of ``nntplib`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!ossaudiodev`:
|
* :mod:`!ossaudiodev`:
|
||||||
For audio playback, use the :pypi:`pygame` library from PyPI instead.
|
For audio playback, use the :pypi:`pygame` library from PyPI instead.
|
||||||
* :mod:`!pipes`:
|
* :mod:`!pipes`:
|
||||||
Use the :mod:`subprocess` module instead.
|
Use the :mod:`subprocess` module instead.
|
||||||
Use :func:`shlex.quote` to replace the undocumented ``pipes.quote``
|
Use :func:`shlex.quote` to replace the undocumented ``pipes.quote``
|
||||||
function.
|
function.
|
||||||
|
|
||||||
|
* :pypi:`standard-pipes`:
|
||||||
|
Use the redistribution of ``pipes`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!sndhdr`:
|
* :mod:`!sndhdr`:
|
||||||
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
|
The :pypi:`filetype`, :pypi:`puremagic`, or :pypi:`python-magic` libraries
|
||||||
should be used as replacements.
|
should be used as replacements.
|
||||||
|
|
||||||
|
* :pypi:`standard-sndhdr`:
|
||||||
|
Use the redistribution of ``sndhdr`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!spwd`:
|
* :mod:`!spwd`:
|
||||||
Use the :pypi:`python-pam` library from PyPI instead.
|
Use the :pypi:`python-pam` library from PyPI instead.
|
||||||
* :mod:`!sunau`
|
* :mod:`!sunau`
|
||||||
|
|
||||||
|
* :pypi:`standard-sunau`:
|
||||||
|
Use the redistribution of ``sunau`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!telnetlib`,
|
* :mod:`!telnetlib`,
|
||||||
Use the :pypi:`telnetlib3` or :pypi:`Exscript` libraries from PyPI instead.
|
Use the :pypi:`telnetlib3` or :pypi:`Exscript` libraries from PyPI instead.
|
||||||
|
|
||||||
|
* :pypi:`standard-telnetlib`:
|
||||||
|
Use the redistribution of ``telnetlib`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!uu`:
|
* :mod:`!uu`:
|
||||||
Use the :mod:`base64` module instead, as a modern alternative.
|
Use the :mod:`base64` module instead, as a modern alternative.
|
||||||
|
|
||||||
|
* :pypi:`standard-uu`:
|
||||||
|
Use the redistribution of ``uu`` library from PyPI.
|
||||||
|
|
||||||
* :mod:`!xdrlib`
|
* :mod:`!xdrlib`
|
||||||
|
|
||||||
|
* :pypi:`standard-xdrlib`:
|
||||||
|
Use the redistribution of ``xdrlib`` library from PyPI.
|
||||||
|
|
||||||
(Contributed by Victor Stinner and Zachary Ware in :gh:`104773` and :gh:`104780`.)
|
(Contributed by Victor Stinner and Zachary Ware in :gh:`104773` and :gh:`104780`.)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user