From 44a23e363b3bdac3b755aad227207ca2a459c833 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Thu, 6 Jan 2022 20:50:07 +0530 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Felix Fontein --- changelogs/fragments/304_pep632.yml | 2 +- plugins/module_utils/version.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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