From 14f1b3e8826ce43b978db93a62d1166055db5394 Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 2 Jan 2017 19:26:05 +0000 Subject: Vendor import of lldb trunk r290819: https://llvm.org/svn/llvm-project/lldb/trunk@290819 --- packages/Python/lldbsuite/support/seven.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'packages/Python/lldbsuite/support/seven.py') diff --git a/packages/Python/lldbsuite/support/seven.py b/packages/Python/lldbsuite/support/seven.py index 56ddd8db3f663..e04f48308b7dd 100644 --- a/packages/Python/lldbsuite/support/seven.py +++ b/packages/Python/lldbsuite/support/seven.py @@ -10,11 +10,16 @@ else: def get_command_status_output(command): try: import subprocess - return (0, subprocess.check_output(command, shell=True, universal_newlines=True)) + return ( + 0, + subprocess.check_output( + command, + shell=True, + universal_newlines=True)) except subprocess.CalledProcessError as e: return (e.returncode, e.output) 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 + cmp_ = lambda x, y: (x > y) - (x < y) -- cgit v1.2.3