[debuginfo-tests] Avoid "import commands" which was deprecated in Py3

llvm-svn: 346059
This commit is contained in:
Reid Kleckner 2018-11-03 00:16:23 +00:00
parent 513472a7c5
commit 64189b8f57
1 changed files with 1 additions and 1 deletions
debuginfo-tests

View File

@ -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: