8000 remove the detailed recommendations; link to latest supported version · python/cpython@4743967 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4743967

Browse files
committed
remove the detailed recommendations; link to latest supported version
1 parent 1c0fad3 commit 4743967

File tree

2 files changed

+10
-25
lines changed

2 files changed

+10
-25
lines changed

Doc/library/cgi.rst

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,28 +10,8 @@ It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
1010
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
1111

1212
A fork of the module on PyPI can be used instead: :pypi:`legacy-cgi`.
13+
This is a copy of the cgi module, no longer maintained or supported by the core
14+
Python team.
1315

14-
If you want to update your code using supported standard library modules:
15-
16-
* ``cgi.FieldStorage`` can typically be replaced with
17-
:func:`urllib.parse.parse_qsl` for ``GET`` and ``HEAD`` requests, and the
18-
:mod:`email.message` module or :pypi:`multipart` PyPI project for ``POST``
19-
and ``PUT``.
20-
21-
* ``cgi.parse()`` can be replaced by calling :func:`urllib.parse.parse_qs`
22-
directly on the desired query string, except for ``multipart/form-data``
23-
input, which can be handled as described for ``cgi.parse_multipart()``.
24-
25-
* ``cgi.parse_multipart()`` can be replaced with the functionality in the
26-
:mod:`email` package (e.g. :class:`email.message.EmailMessage` and
27-
:class:`email.message.Message`) which implements the same MIME RFCs, or
28-
with the :pypi:`multipart` PyPI project.
29-
30-
* ``cgi.parse_header()`` can be replaced with the functionality in the
31-
:mod:`email` package, which implements the same MIME RFCs. For example,
32-
with :class:`email.message.EmailMessage`::
33-
34-
from email.message import EmailMessage
35-
msg = EmailMessage()
36-
msg['content-type'] = 'application/json; charset="utf8"'
37-
main, params = msg.get_content_type(), msg['content-type'].params
16+
The last version of Python that provided the :mod:`!cgi` module was
17+
`Python 3.12 <https://docs.python.org/3.12/library/cgi.html>`_.

Doc/library/cgitb.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,9 @@ This module is no longer part of the Python standard library.
99
It was :ref:`removed in Python 3.13 <whatsnew313-pep594>` after
1010
being deprecated in Python 3.11. The removal was decided in :pep:`594`.
1111

12-
A fork of the module on PyPI can be used instead: :pypi:`legacy-cgi`.
12+
A fork of the module on PyPI can now be used instead: :pypi:`legacy-cgi`.
13+
This is a copy of the cgi module, no longer maintained or supported by the core
14+
Python team.
15+
16+
The last version of Python that provided the :mod:`!cgitb` module was
17+
`Python 3.12 <https://docs.python.org/3.12/library/cgitb.html>`_.

0 commit comments

Comments
 (0)
0