Closed onlined closed 9 months ago
Thanks for the patch @onlined, but as importlib.util.find_spec
and friends were introduced in Python 3.4 this patch breaks Python 2.7 compatibility. As far as I can tell, there isn't a simple and elegant way to stay compatible with 2.7.
As I no longer run a machine with 2.7, Github doesn't support it in the CI and 2.7 has been EOL since more than three years, I'm inclined to stop supporting 2.7. Do you want to update the documentation to no longer claim Python 2.7 compatibility in this patch (and also remove the 2.7 compatibility code we have in the tree in a separate commit)? Or do you want me to do that, and then rebase your commit?
I added the documentation update, I think we can merge this as-is and I can remove the compatibility code in a separate PR.
I opened #312 for removing the compatibility code. It is still draft, I'll change its status after this PR is merged and I rebase it on top of new master
Thank you for your contribution @onlined. Feel free to un-draft #312, I have reviewed it and will merge it as soon as it is refreshed.
Thanks! Un-drafted #312.
Python 3.12 has removed
imp
and it's recommended to useimportlib
instead.Closes #310.