commit 0425d7e7fd673799fd17687422609e27452415e3 Author: likui Date: Fri Sep 18 14:10:55 2020 +0800 Remove six.PY3 The Python 2.7 Support has been dropped since Ussuri. So remove hacking rules for compatibility between python 2 and 3 Change-Id: I1854595e1022e284b3102b6d34bcbc0e9ddded8c diff --git a/tripleo_ansible/ansible_plugins/filter/helpers.py b/tripleo_ansible/ansible_plugins/filter/helpers.py index 2da90ec..c206a79 100644 --- a/tripleo_ansible/ansible_plugins/filter/helpers.py +++ b/tripleo_ansible/ansible_plugins/filter/helpers.py @@ -18,14 +18,13 @@ import ast import json import os import re -import six from ansible import errors + # cmp() doesn't exist on python3 -if six.PY3: - def cmp(a, b): - return 0 if a == b else 1 +def cmp(a, b): + return 0 if a == b else 1 class FilterModule(object):