mirror of https://github.com/ansible/ansible.git
Update collections.abc imports (#79911)
* Update `collections.abc` imports - Use `six.moves` for modules and module_utils - Use `collections.abc` for controller code This avoids using `ansible.module_utils.common._collections_compat`, which was added before the vendored `six` was updated to provide these imports. * Update _collections_compat to use six.moves Also update the custom pylint rule to reflect this change.pull/79914/head
parent
e658995760
commit
379058e10f
@ -0,0 +1,6 @@
|
||||
minor_changes:
|
||||
- Use ``ansible.module_utils.six.moves.collections_abc`` instead of ``ansible.module_utils.common._collections_compat``
|
||||
in modules and module_utils.
|
||||
- Use ``collections.abc`` instead of ``ansible.module_utils.common._collections_compat`` in controller code.
|
||||
- ansible-test - Update the ``ansible-bad-import-from`` rule in the ``pylint`` sanity test to recommend
|
||||
``ansible.module_utils.six.moves.collections_abc`` instead of ``ansible.module_utils.common._collections_compat``.
|
Loading…
Reference in New Issue