Debian Codegraph @

ansible_collections/community/rabbitmq/plugins/module_utils/version.py

raw
1 # -*- coding: utf-8 -*-
2
3 # Copyright: (c) 2021, Felix Fontein <[email protected]>
4 # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
5
6 """Provide version object to compare version numbers."""
7
8 from __future__ import absolute_import, division, print_function
9 __metaclass__ = type
10
11 # Once we drop support for Ansible 2.9, ansible-base 2.10, and ansible-core 2.11, we can
12 # remove the _version.py file, and replace the following import by
13 #
14 # from ansible.module_utils.compat.version import LooseVersion
15
16 from ._version import LooseVersion, StrictVersion