diff options
author | Davide Italiano <davide@freebsd.org> | 2019-04-18 21:32:36 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2019-04-18 21:32:36 +0000 |
commit | 085626a873e077da7838342dd6ec93ef4c64b7b3 (patch) | |
tree | b466e86b7e8cabf93d6d4f74a5f75a18b059c75f /lldb/examples | |
parent | fac7875704b46f77e5a8b2871216e01b9b357401 (diff) | |
download | bcm5719-llvm-085626a873e077da7838342dd6ec93ef4c64b7b3.tar.gz bcm5719-llvm-085626a873e077da7838342dd6ec93ef4c64b7b3.zip |
[crashlog] Strip trailing `\n` from check_output return.
Generally having spurious `\n` doesn't matter, but here the
returning string is a command which is executed, so we want
to strip it. Pointed out by Jason.
llvm-svn: 358717
Diffstat (limited to 'lldb/examples')
-rwxr-xr-x | lldb/examples/python/crashlog.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index e006adaca05..033be8c4cf3 100755 --- a/lldb/examples/python/crashlog.py +++ b/lldb/examples/python/crashlog.py @@ -225,7 +225,7 @@ class CrashLog(symbolication.Symbolicator): if not os.path.exists(dsymForUUIDBinary): try: dsymForUUIDBinary = subprocess.check_output('which dsymForUUID', - shell=True) + shell=True).rstrip('\n') except: dsymForUUIDBinary = "" |