Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-133810: removehttp.server.CGIHTTPRequestHandler
and--cgi
flag#133811
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from11 commits
b19ee64
5c5b46c
588b38a
b1c1657
a547ec3
4f0d6cd
4175177
80ce094
2ecff1d
f9941b0
be50cfd
fb781d9
782c99d
62855fd
6bed465
d55959c
4938157
1978d23
32fb546
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -20,7 +20,7 @@ Pending removal in Python 3.15 | ||
* :mod:`http.server`: | ||
* The obsolete and rarely used :class:`!http.server.CGIHTTPRequestHandler` | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
has been deprecated since Python 3.13. | ||
No direct replacement exists. | ||
*Anything* is better than CGI to interface | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1871,7 +1871,7 @@ New Deprecations | ||
* :mod:`http.server`: | ||
* Deprecate :class:`!http.server.CGIHTTPRequestHandler`, | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
to be removed in Python 3.15. | ||
Process-based CGI HTTP servers have been out of favor for a very long time. | ||
This code was outdated, unmaintained, and rarely used. | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -121,6 +121,15 @@ Deprecated | ||
Removed | ||
======= | ||
http.server | ||
----------- | ||
* Removed the :class:`!http.server.CGIHTTPRequestHandler` class | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
and the ``--cgi`` flag to the :program:`python -m http.server` | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
command-line interface. Those are deprecated since Python 3.13. | ||
picnixz marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
(Contributed by Bénédikt Tran in :gh:`133810`.) | ||
sysconfig | ||
--------- | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -181,11 +181,10 @@ def _strip_ipv6_iface(enc_name: bytes) -> bytes: | ||
return enc_name | ||
class HTTPMessage(email.message.Message): | ||
# The getallmatchingheaders() method was only used by the CGI handler | ||
# that was removed in Python 3.15. However, since the public API was not | ||
# properly defined, it will be kept for backwards compatibility reasons. | ||
Comment on lines +185 to +187 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Hmm, perhaps a candidate for deprecation in 3.15? Separate issue to check for usage and so on. If so, perhaps can be removed in 3.17 rather than the 3.20. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. We have a separate issue for this method so we can discuss its removal as well. I'll need to find it though. | ||
def getallmatchingheaders(self, name): | ||
"""Find all header lines matching a given header name. | ||
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.