mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Support using importlib on py>=3 to avoid imp deprecation (#54883)
* Support using importlib on py>=3 to avoid imp deprecation * Add changelog fragment * importlib coverage for py3 * Ansiballz execute should use importlib too * recursive module_utils finder should utilize importlib too * don't be dumb * Fix up units * Clean up tests * Prefer importlib.util in plugin loader when available * insert the module into sys.modules * 3 before 2 for consistency * ci_complete * Address importlib.util.find_spec returning None
This commit is contained in:
2
changelogs/fragments/ansiballz-imp-deprecation.yaml
Normal file
2
changelogs/fragments/ansiballz-imp-deprecation.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- AnsiballZ - Use ``importlib`` to load the module instead of ``imp`` on Python3+
|
||||
Reference in New Issue
Block a user