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

Avoid deprecation warning on CPython 3.9 #746

Merged
merged 1 commit into from
Jan 6, 2021

Conversation

bstaletic
Copy link
Contributor

According to the docs, we should just skip this call.

@BoboTiG
Copy link
Collaborator

BoboTiG commented Jan 5, 2021

Thanks for the patch!

According to the doc, we could even skip it starting with Python 3.7, right?

@bstaletic bstaletic force-pushed the master branch 2 times, most recently from 35c4b8e to f9d10b0 Compare January 6, 2021 04:34
@bstaletic
Copy link
Contributor Author

According to the doc, we could even skip it starting with Python 3.7, right?

True. The tests seem to pass. The failure on python 3.10 is related to benjaminp/six#343 and isn't caused by my PR.

@BoboTiG
Copy link
Collaborator

BoboTiG commented Jan 6, 2021

Do you mind adding a comment in the code and a link to the doc?
And if you could also add a line and your GH nickname in the changelog, it would be great too.

@bstaletic bstaletic force-pushed the master branch 2 times, most recently from 7d7c0e3 to 09e44ea Compare January 6, 2021 10:29
@bstaletic
Copy link
Contributor Author

Changelog entry and comment added.

Since CPython 3.7 `PyEval_InitThreads()` does nothing and the function
has been deprecated since CPython 3.9.
@BoboTiG BoboTiG merged commit 847a059 into gorakhargosh:master Jan 6, 2021
@BoboTiG
Copy link
Collaborator

BoboTiG commented Jan 6, 2021

Thanks a lot @bstaletic :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants