summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python/performance.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/examples/python/performance.py')
-rwxr-xr-xlldb/examples/python/performance.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/lldb/examples/python/performance.py b/lldb/examples/python/performance.py
index 9a514e74b7c..aec6b307f87 100755
--- a/lldb/examples/python/performance.py
+++ b/lldb/examples/python/performance.py
@@ -16,14 +16,10 @@ import platform
import re
import resource
import sys
+import subprocess
import time
import types
-if sys.version_info.major == 2:
- import commands as subprocess
-else:
- import subprocess
-
#----------------------------------------------------------------------
# Code that auto imports LLDB
#----------------------------------------------------------------------
@@ -36,7 +32,7 @@ except ImportError:
platform_system = platform.system()
if platform_system == 'Darwin':
# On Darwin, try the currently selected Xcode directory
- xcode_dir = subprocess.getoutput("xcode-select --print-path")
+ xcode_dir = subprocess.check_output("xcode-select --print-path", shell=True)
if xcode_dir:
lldb_python_dirs.append(
os.path.realpath(
OpenPOWER on IntegriCloud