annotate mercurial/templates/spartan/__init__.py @ 51849:4dc1fc2b2f3a default tip

setup: avoid the deprecated `distutils.spawn.find_executable` I noticed this was flagged with `DeprecationWarning` in py3.12 with `setuptools` 74.1.2, and it suggested `shutil.which()` instead. The signatures aren't the same, but the additional `mode` argument in the middle of the latter defaults to `os.F_OK | os.X_OK`, which maintains the same semantics.
author Matt Harbison <mharbison@atto.com>
date Thu, 05 Sep 2024 17:12:52 -0400
parents f55c47f41b8e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source