diff options
| author | Serge Guelton <sguelton@redhat.com> | 2019-03-26 14:46:15 +0000 |
|---|---|---|
| committer | Serge Guelton <sguelton@redhat.com> | 2019-03-26 14:46:15 +0000 |
| commit | 1a12dd70c00a44e34384b1904d18d309ae3c3ac6 (patch) | |
| tree | fd786218bf2e1d8894562c909de7b30f08608f02 /lldb/scripts | |
| parent | 25f9094d89d01d4fb562ba0edcc2eb63f9e074d7 (diff) | |
| download | bcm5719-llvm-1a12dd70c00a44e34384b1904d18d309ae3c3ac6.tar.gz bcm5719-llvm-1a12dd70c00a44e34384b1904d18d309ae3c3ac6.zip | |
python 2/3 compat: commands vs subprocess
Differential Revision: https://reviews.llvm.org/D59584
llvm-svn: 356995
Diffstat (limited to 'lldb/scripts')
| -rwxr-xr-x | lldb/scripts/verify_api.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/scripts/verify_api.py b/lldb/scripts/verify_api.py index edf93e7637f..d422cded8c2 100755 --- a/lldb/scripts/verify_api.py +++ b/lldb/scripts/verify_api.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -import commands +import subprocess import optparse import os import os.path @@ -11,7 +11,7 @@ import sys def extract_exe_symbol_names(arch, exe_path, match_str): command = 'dsymutil --arch %s -s "%s" | grep "%s" | colrm 1 69' % ( arch, exe_path, match_str) - (command_exit_status, command_output) = commands.getstatusoutput(command) + (command_exit_status, command_output) = subprocess.getstatusoutput(command) if command_exit_status == 0: if command_output: return command_output[0:-1].split("'\n") |

