Closed pushkarnk closed 1 month ago
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
Thanks! I think I'd just drop support of Python2 for good in the next release..
Makes sense. I'll withdraw this PR then. Thank you.
I guess in the meantime let's use this fix :)
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