summaryrefslogtreecommitdiff
path: root/lib/ansible/module_utils/six.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/module_utils/six.py')
-rw-r--r--lib/ansible/module_utils/six.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/ansible/module_utils/six.py b/lib/ansible/module_utils/six.py
index 85898ec712..b93d4bf8bb 100644
--- a/lib/ansible/module_utils/six.py
+++ b/lib/ansible/module_utils/six.py
@@ -38,6 +38,7 @@ if PY3:
class_types = type,
text_type = str
binary_type = bytes
+ cmp = lambda a, b: (a > b) - (a < b)
MAXSIZE = sys.maxsize
else:
@@ -46,6 +47,7 @@ else:
class_types = (type, types.ClassType)
text_type = unicode
binary_type = str
+ cmp = cmp
if sys.platform.startswith("java"):
# Jython always uses 32 bits.