diff options
author | Zachary Turner <zturner@google.com> | 2015-11-03 18:55:22 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2015-11-03 18:55:22 +0000 |
commit | bb03a4660f669bff3875ce00c1d4acaf28c244ef (patch) | |
tree | 11dfd9a5292d0635b89514c5e92408b38c1d93c3 /lldb/packages/Python/lldbsuite/test/lang/objc/ivar-IMP | |
parent | e7fe1a46e4213842fc2f2c0b0dcd4232923bac20 (diff) | |
download | bcm5719-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/lang/objc/ivar-IMP')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py b/lldb/packages/Python/lldbsuite/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py index 5d8d3c11d66..7202d085869 100644 --- a/lldb/packages/Python/lldbsuite/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py +++ b/lldb/packages/Python/lldbsuite/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py @@ -7,15 +7,15 @@ from __future__ import print_function import use_lldb_suite import os, time -import commands import re import lldb import lldbsuite.test.lldbutil as lldbutil from lldbsuite.test.lldbtest import * +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)) |