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

Remove cgi DeprecationWarning (Close #604) #605

Merged
merged 2 commits into from
Nov 10, 2022
Merged

Remove cgi DeprecationWarning (Close #604) #605

merged 2 commits into from
Nov 10, 2022

Conversation

Vinfall
Copy link
Contributor

@Vinfall Vinfall commented Nov 10, 2022

I've checked the ToDo list and PR guidelines.

Description

Remove the DeprecationWarning 'cgi' is deprecated and slated for removal in Python 3.13.

Design notes

See possible methods in #604, I choose to replace cgi with email.

Side effects

None since cgi and email are all standard libraries (https://docs.python.org/3.11/library/email.html).

Test cases

I cloned the repo, made a fix and installed the updated buku using python setup.py install inside an isolated virtualenv and it does not show the deprecation warning anymore. The linting test running locally with python3 -m pylint buku passed as well.

Documentation

Didn't touch as I think it's not related.

Vinfall and others added 2 commits November 9, 2022 11:53
DeprecationWarning: 'cgi' is deprecated and slated for removal in Python 3.13
  import cgi
@Vinfall
Copy link
Contributor Author

Vinfall commented Nov 10, 2022

Sorry, I didn't frequently use Python for a while... I also run the linting test locally with python3 -m pylint buku and got no error. I hope the code is fine now as the CI test shows no exit code.

@jarun jarun merged commit 80fc71c into jarun:master Nov 10, 2022
@jarun
Copy link
Owner

jarun commented Nov 10, 2022

Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants