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

Move _SixMetaPathImporter to using find_spec() #670

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

pushkarnk
Copy link
Contributor

@pushkarnk pushkarnk commented Feb 3, 2024

Python 3.12 seems to have completely done away with find_module(), which the _SixMetaPathImporter still uses. This commit added support for 3.12 through the find_spec() finder approach.

Credits: This delta was borrowed from kafka-python project https://github.com/dpkp/kafka-python/blob/master/kafka/vendor/six.py

Python 3.12 seems to have completely done away with find_module(),
which the _SixMetaPathImporter still uses. This commit added
support for 3.12 through the find_spec() finder approach.

Credit: This delta was borrowed from kafka-python project
https://github.com/dpkp/kafka-python/blob/master/kafka/vendor/six.py
@mikolmogorov
Copy link
Owner

Thanks! I think I'd just drop support of Python2 for good in the next release..

@pushkarnk
Copy link
Contributor Author

Makes sense. I'll withdraw this PR then. Thank you.

@pushkarnk pushkarnk closed this Feb 6, 2024
@mikolmogorov mikolmogorov reopened this Aug 27, 2024
@mikolmogorov mikolmogorov merged commit 81656fc into mikolmogorov:flye Aug 27, 2024
@mikolmogorov
Copy link
Owner

I guess in the meantime let's use this fix :)

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.

2 participants