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

fix: support Python 3.13 (resolve #202) #203

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

OverflowCat
Copy link
Contributor

As reported in #202, bilix does not work using Python 3.13.0a2.

This PR addresses the removal of the cgi module in Python 3.13, which has been deprecated since Python 3.11, by replacing cgi.parse_header with email.message.Message as recommended in PEP 594.

This issue was originally reported by @gridkr in saveweb/biliarchiver#14.

`cgi` is deprecated since Python 3.11 and is removed from Python 3.13; use `email.message.Message` instead of `cgi.parse_header`. See [PEP 594](https://peps.python.org/pep-0594/).
@HFrost0 HFrost0 added the dependency problems related to dependency label Jan 17, 2024
@HFrost0 HFrost0 linked an issue Jan 17, 2024 that may be closed by this pull request
@HFrost0 HFrost0 merged commit 26dbb9e into HFrost0:master Jan 17, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependency problems related to dependency
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ImportError due to deprecated 'cgi' module in Python 3.13
2 participants