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 the cgi module by vendoring used functions #34

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

timhallmann
Copy link
Contributor

Python 3.13 dropped the deprecated cgi module. Remove the module and include the relevant function to parse the content header.

This could be implemented differently, e.g. the Python docs mention using email.message.EmailMessage. However, this approach seems a bit more natural in this instance.

Copy link
Member

@lilioid lilioid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for bringing this up. I'll adapt our tests to officially support newer python versions soon(-ish) too.

Even though the PR is small, I do have some suggestions I would like addressed.

src/simple_openid_connect/utils.py Outdated Show resolved Hide resolved
src/simple_openid_connect/utils.py Outdated Show resolved Hide resolved
src/simple_openid_connect/utils.py Outdated Show resolved Hide resolved
src/simple_openid_connect/utils.py Outdated Show resolved Hide resolved
@timhallmann
Copy link
Contributor Author

Thanks for bringing this up.

Certainly, I've only recently switched to 3.13 myself, so this was the first time I noticed that.

Even though the PR is small, I do have some suggestions I would like addressed.

Makes sense, all done. In my defense: The missing type hints weren't that noticeable thanks to pyright correctly inferring everything. ;)

Python 3.13 dropped the deprecated cgi module. Remove the module and
include the relevant function to parse the content header.
@lilioid lilioid merged commit 956550b into fsinfuhh:main Feb 14, 2025
16 of 17 checks passed
@lilioid
Copy link
Member

lilioid commented Feb 14, 2025

@timhallmann Thanks once again :)
I see you built an OIDC integration into sampledb using our library.
If there's any feedback on how that went and your experience in using this library, we'd love to hear it.

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.

3 participants