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

Replace cgi.parse_header() with custom function for Python 3.13 compat #713

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

t-8ch
Copy link

@t-8ch t-8ch commented Oct 9, 2024

The cgi module has been deprecated since Python 3.11 and got removed in Python 3.13. Replace the cgi.parse_header() function with a custom one, as recommended by the Python documentation.

Closes #712

Note: There is another usage of cgi in spyne/server/twisted/http.py, but I have no idea how twisted works, and it's not part of my usecase.

@bgermann Could you give this a try in the Debian packaging?

@bgermann
Copy link

bgermann commented Oct 9, 2024

With this, one test fails even with Python 3.12.

The cgi module has been deprecated since Python 3.11 and got removed in
Python 3.13. Replace the cgi.parse_header() function with a custom one,
as recommended by the Python documentation.

Closes arskom#712
@t-8ch
Copy link
Author

t-8ch commented Oct 9, 2024

@bgermann Please try again

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 this pull request may close these issues.

Python 3.13: Replace cgi module
2 participants