mirror of
https://chromium.googlesource.com/chromium/tools/depot_tools.git
synced 2026-01-11 18:51:29 +00:00
PRESUBMIT.py files can invoke other scripts, and those scripts may be run under Python 2 or Python 3. There are multiple mechanisms that govern which version will be used, sometimes requiring several flags to be passed. This change removes support for Python 2 from this system, thus making it simpler to invoke Python 3 scripts. The function parameters that are used to select Python versions are passed in from multiple places so they still need to be supported, but they are now ignored. The parameters are deleted to prevent accidental use. This change was tested by running this command in a Chromium repo: git cl presubmit --force --all Bug: 1207012 Change-Id: I4adc7164417e155ff80d3a039cf36ed030756456 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/4328470 Reviewed-by: Aravind Vasudevan <aravindvasudev@google.com> Commit-Queue: Bruce Dawson <brucedawson@chromium.org>
310 B
310 B