[debuginfo-tests] r346059 - [debuginfo-tests] Avoid "import commands" which was deprecated in Py3
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 2 17:16:23 PDT 2018
Author: rnk
Date: Fri Nov 2 17:16:23 2018
New Revision: 346059
URL: http://llvm.org/viewvc/llvm-project?rev=346059&view=rev
Log:
[debuginfo-tests] Avoid "import commands" which was deprecated in Py3
Modified:
debuginfo-tests/trunk/lit.cfg.py
Modified: debuginfo-tests/trunk/lit.cfg.py
URL: http://llvm.org/viewvc/llvm-project/debuginfo-tests/trunk/lit.cfg.py?rev=346059&r1=346058&r2=346059&view=diff
==============================================================================
--- debuginfo-tests/trunk/lit.cfg.py (original)
+++ debuginfo-tests/trunk/lit.cfg.py Fri Nov 2 17:16:23 2018
@@ -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
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:
More information about the llvm-commits
mailing list