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

Deprecated package: cgi #107

Open
atapin opened this issue Jul 4, 2024 · 0 comments · May be fixed by #108
Open

Deprecated package: cgi #107

atapin opened this issue Jul 4, 2024 · 0 comments · May be fixed by #108

Comments

@atapin
Copy link

atapin commented Jul 4, 2024

cgi package is deprecated since Python 3.11, and will be removed in Python 3.13.

Alternative for cgi.parse_header:

from email.message import EmailMessage
msg = EmailMessage()
msg['content-type'] = 'application/json; charset="utf8"'
content_type = msg.get_content_type()
@atapin atapin linked a pull request Jul 4, 2024 that will close this issue
6 tasks
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.

1 participant