From bb03a4660f669bff3875ce00c1d4acaf28c244ef Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 3 Nov 2015 18:55:22 +0000 Subject: Python 3 - Don't use `commands` module anymore. The `commands` module was deprecated in 2.7 and removed in 3.x. As a workaround, we introduce a new module `seven` in lldbsuite.support, and write helper functions in there that delegate to the commands module if it is available, and re-implement their functionality for cases where it is not available. llvm-svn: 251959 --- lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py') diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py b/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py index f04c49ce3e2..552f46b83de 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py @@ -6,15 +6,15 @@ from __future__ import print_function import use_lldb_suite import lldb -import commands import os import time from lldbsuite.test.lldbtest import * import lldbsuite.test.lldbutil as lldbutil +import lldbsuite.support.seven as seven def execute_command (command): #print('%% %s' % (command)) - (exit_status, output) = commands.getstatusoutput(command) + (exit_status, output) = seven.get_command_status_output(command) #if output: # print(output) #print('status = %u' % (exit_status)) -- cgit v1.2.3