Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FYI: cgi module is deprecated in Python 3.11, will be removed in 3.13 #914

Open
exoosh opened this issue Dec 16, 2022 · 0 comments
Open

Comments

@exoosh
Copy link

exoosh commented Dec 16, 2022

Source for the information: https://docs.python.org/3/library/cgi.html

cgi — Common Gateway Interface support

Source code: Lib/cgi.py

Deprecated since version 3.11, will be removed in version 3.13: The cgi module is deprecated (see PEP 594 for details and alternatives).

cgi.parse_multipart() is currently used in input_format.py, for example.

As a side note, this use also causes issues if you are trying to upload several GiB of data through a POST. The documentation for the method says:

This is easy to use but not much good if you are expecting megabytes to be uploaded — in that case, use the FieldStorage class instead which is much more flexible.

For hug the best option seems to be to use email.message instead.

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

No branches or pull requests

1 participant