Introduce seven.cmp_ and use it instead of cmp
llvm-svn: 251982
diff --git a/lldb/packages/Python/lldbsuite/support/seven.py b/lldb/packages/Python/lldbsuite/support/seven.py
index 1aab61f..29c6e9e 100644
--- a/lldb/packages/Python/lldbsuite/support/seven.py
+++ b/lldb/packages/Python/lldbsuite/support/seven.py
@@ -5,6 +5,7 @@
get_command_output = commands.getoutput
get_command_status_output = commands.getstatusoutput
+ cmp_ = cmp
else:
def get_command_status_output(command):
try:
@@ -15,3 +16,5 @@
def get_command_output(command):
return get_command_status_output(command)[1]
+
+ cmp_ = lambda x, y: (x > y) - (x < y)
\ No newline at end of file