Update shebang for clang-format-diff script to python3.
authorPaula Toth <paulatoth@google.com>
Thu, 22 Apr 2021 13:43:06 +0000 (06:43 -0700)
committerPaula Toth <paulatoth@google.com>
Thu, 22 Apr 2021 13:47:51 +0000 (06:47 -0700)
Different distributions have different strategies migrating the `python` symlink. Debian and its derivatives provide `python-is-python2` and `python-is-python3`. If neither is installed, the user gets no `/usr/bin/python`. The clang-format-diff script and consequently `arc diff` can thus fail with a python not found error.  Since we require python greater than 3.6 as part of llvm prerequisites (https://llvm.org/docs/GettingStarted.html#software), let's go ahead and update this shebang.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D100968

clang/tools/clang-format/clang-format-diff.py

index efed816..4edc0b2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
 #