conan
conan copied to clipboard
Replace deprecated imp module with importlib
Changelog: Fix: The imp module was deprecated with Python 3.4 and is scheduled for removal with Python 3.12. This PR remove the last reference to imp
Closes #12148
- [x] Refer to the issue that supports this Pull Request.
- [x] If the issue has missing info, explain the purpose/use case/pain/need that covers this Pull Request.
- [x] I've read the Contributing guide.
- [x] I've followed the PEP8 style guides for Python code.
- [N/A] I've opened another PR in the Conan docs repo to the
developbranch, documenting this one.
Test with Python 3.6 since that is the oldest version currently supported. Run slow tests to be sure we cover all cases #PYVERS: py36 #TAGS: slow