forked from OSchip/llvm-project
[debuginfo-tests] Avoid "import commands" which was deprecated in Py3
llvm-svn: 346059
This commit is contained in:
parent
513472a7c5
commit
64189b8f57
debuginfo-tests
|
@ -5,7 +5,6 @@ import platform
|
|||
import re
|
||||
import subprocess
|
||||
import tempfile
|
||||
import commands
|
||||
|
||||
import lit.formats
|
||||
import lit.util
|
||||
|
@ -64,6 +63,7 @@ llvm_config.add_tool_substitutions(tools, tool_dirs)
|
|||
lit.util.usePlatformSdkOnDarwin(config, lit_config)
|
||||
|
||||
if platform.system() == 'Darwin':
|
||||
import commands
|
||||
xcode_lldb_vers = commands.getoutput("xcrun lldb --version")
|
||||
match = re.search('lldb-(\d+)', xcode_lldb_vers)
|
||||
if match:
|
||||
|
|
Loading…
Reference in New Issue