[all-commits] [llvm/llvm-project] 268a4b: [libcxx] Replace find_executable with shutil.which
David Spickett via All-commits
all-commits at lists.llvm.org
Mon Apr 17 08:02:01 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 268a4b0a451432833d3b398c7182d133c865dff5
https://github.com/llvm/llvm-project/commit/268a4b0a451432833d3b398c7182d133c865dff5
Author: David Spickett <david.spickett at linaro.org>
Date: 2023-04-17 (Mon, 17 Apr 2023)
Changed paths:
M libcxx/utils/libcxx/sym_check/extract.py
M libcxx/utils/libcxx/sym_check/util.py
Log Message:
-----------
[libcxx] Replace find_executable with shutil.which
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
which was added in 3.3 (https://docs.python.org/3/library/shutil.html#shutil.which)
and LLVM requires at least 3.6 (https://llvm.org/docs/GettingStarted.html#software).
Reviewed By: #libc, philnik
Differential Revision: https://reviews.llvm.org/D148527
More information about the All-commits
mailing list