summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/exec
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-11-03 18:55:22 +0000
committerZachary Turner <zturner@google.com>2015-11-03 18:55:22 +0000
commitbb03a4660f669bff3875ce00c1d4acaf28c244ef (patch)
tree11dfd9a5292d0635b89514c5e92408b38c1d93c3 /lldb/packages/Python/lldbsuite/test/functionalities/exec
parente7fe1a46e4213842fc2f2c0b0dcd4232923bac20 (diff)
downloadbcm5719-llvm-bb03a4660f669bff3875ce00c1d4acaf28c244ef.tar.gz
bcm5719-llvm-bb03a4660f669bff3875ce00c1d4acaf28c244ef.zip
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/exec')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py4
1 files changed, 2 insertions, 2 deletions
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))
OpenPOWER on IntegriCloud