From 66355df9177f0c0fee5d0a1889d8378d851cc35b Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 16 May 2017 14:22:48 +0200 Subject: [PATCH] module_utils/six: PEP8 compliancy - Make PEP8 compliant --- lib/ansible/module_utils/six/_six.py | 3 --- test/sanity/pep8/legacy-files.txt | 1 - 2 files changed, 4 deletions(-) diff --git a/lib/ansible/module_utils/six/_six.py b/lib/ansible/module_utils/six/_six.py index 8caf2ad85c..0828f24279 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 74cffa332c..c474455267 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