diff --git a/changelogs/fragments/304_pep632.yml b/changelogs/fragments/304_pep632.yml index e1343b0..6c92fdc 100644 --- a/changelogs/fragments/304_pep632.yml +++ b/changelogs/fragments/304_pep632.yml @@ -1,3 +1,3 @@ --- bugfixes: -- Replace distutils with included module in ansible-core 2.12 to address PEP 632 if available (https://github.com/ansible-collections/ansible.posix/issues/303). +- Use vendored version of ``distutils.version`` instead of the deprecated Python standard library to address PEP 632 (https://github.com/ansible-collections/ansible.posix/issues/303). diff --git a/plugins/module_utils/version.py b/plugins/module_utils/version.py index 1976fe1..9a55e20 100644 --- a/plugins/module_utils/version.py +++ b/plugins/module_utils/version.py @@ -10,7 +10,7 @@ from __future__ import absolute_import, division, print_function __metaclass__ = type -# Once we drop support for Ansible 2.9 and ansible-base 2.10, we can +# Once we drop support for Ansible 2.9, ansible-base 2.10, and ansible-core 2.11, we can # remove the _version.py file, and replace the following import by # # from ansible.module_utils.compat.version import LooseVersion