llvm-project/lldb/packages/Python/lldbsuite
David Spickett 14869bd2df [lldb] Use shutil.which instead of distutils find_executable
distutils is deprecated and shutil.which is the suggested
replacement for this function.

https://peps.python.org/pep-0632/#migration-advice
https://docs.python.org/3/library/shutil.html#shutil.which

It was added in Python3.3 but given that we're already using
shutil.which elsewhere I think this is ok/no worse than before.

We do have our own find_executable in lldb/test/Shell/helper/build.py
but I'd rather leave that as is for now. Also we have our own versions
of which() but again, a change for another time.

This work is part of #54337.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D124601
2022-04-29 08:41:34 +00:00
..
support [LLDB] Update inspect getargspec to getfullargspec 2022-04-21 01:33:26 +05:00
test [lldb] Use shutil.which instead of distutils find_executable 2022-04-29 08:41:34 +00:00
test_event [lldb/test] Replace shlex.join with shlex.quote 2021-10-29 13:42:06 +02:00
__init__.py [lldb/test] Use realpath consistently for test root file paths. 2020-08-05 11:35:37 -07:00