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

cgi module removal #1352

Closed
decaz opened this issue Dec 12, 2022 · 1 comment · Fixed by #1364
Closed

cgi module removal #1352

decaz opened this issue Dec 12, 2022 · 1 comment · Fixed by #1364

Comments

@decaz
Copy link

decaz commented Dec 12, 2022

DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13

cgi is used here:

def get_media_type(value):
"""Parse a HTTP content-type header and return the media-type"""
main_value, parameters = cgi.parse_header(value)
return main_value.lower()

As a replacement of parse_header function PEP 594 suggests to use email.message.Message.

@arveitch
Copy link

Could I request a release please as Python 3.13 is getting quite close. Thanks so much for an excellent product!

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 a pull request may close this issue.

2 participants