summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/support
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/packages/Python/lldbsuite/support')
-rw-r--r--lldb/packages/Python/lldbsuite/support/seven.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/support/seven.py b/lldb/packages/Python/lldbsuite/support/seven.py
index 1aab61f5926..29c6e9e1353 100644
--- a/lldb/packages/Python/lldbsuite/support/seven.py
+++ b/lldb/packages/Python/lldbsuite/support/seven.py
@@ -5,6 +5,7 @@ if six.PY2:
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 @@ else:
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
OpenPOWER on IntegriCloud