diff --git a/lib/ansible/module_utils/six/_six.py b/lib/ansible/module_utils/six/_six.py index 8caf2ad85cc..0828f242792 100644 --- a/lib/ansible/module_utils/six/_six.py +++ b/lib/ansible/module_utils/six/_six.py @@ -43,8 +43,6 @@ if PY3: class_types = type, text_type = str binary_type = bytes - cmp = lambda a, b: (a > b) - (a < b) - MAXSIZE = sys.maxsize else: string_types = basestring, @@ -52,7 +50,6 @@ else: class_types = (type, types.ClassType) text_type = unicode binary_type = str - cmp = cmp if sys.platform.startswith("java"): # Jython always uses 32 bits. diff --git a/test/sanity/pep8/legacy-files.txt b/test/sanity/pep8/legacy-files.txt index 74cffa332cf..c474455267f 100644 --- a/test/sanity/pep8/legacy-files.txt +++ b/test/sanity/pep8/legacy-files.txt @@ -70,7 +70,6 @@ lib/ansible/module_utils/pycompat24.py lib/ansible/module_utils/redhat.py lib/ansible/module_utils/service.py lib/ansible/module_utils/shell.py -lib/ansible/module_utils/six/_six.py lib/ansible/module_utils/splitter.py lib/ansible/module_utils/univention_umc.py lib/ansible/module_utils/urls.py