[polly] 515bc8c - Harmonize Python shebang

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 12:53:59 PDT 2020


Author: serge-sans-paille
Date: 2020-07-16T21:53:45+02:00
New Revision: 515bc8c1554f03515565878ea3d35cffdc6fd195

URL: https://github.com/llvm/llvm-project/commit/515bc8c1554f03515565878ea3d35cffdc6fd195
DIFF: https://github.com/llvm/llvm-project/commit/515bc8c1554f03515565878ea3d35cffdc6fd195.diff

LOG: Harmonize Python shebang

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

Added: 
    

Modified: 
    clang/utils/clangdiag.py
    clang/utils/modfuzz.py
    compiler-rt/lib/sanitizer_common/scripts/litlint_test.py
    compiler-rt/test/sanitizer_common/android_commands/android_compile.py
    compiler-rt/test/sanitizer_common/android_commands/android_run.py
    compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
    compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
    compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
    compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
    debuginfo-tests/dexter/dexter.py
    debuginfo-tests/llgdb-tests/llgdb.py
    libc/AOR_v20.02/math/tools/plot.py
    libcxx/utils/google-benchmark/mingw.py
    lldb/examples/darwin/heap_find/heap.py
    lldb/examples/python/armv7_cortex_m_target_defintion.py
    lldb/examples/python/bsd.py
    lldb/examples/python/cmdtemplate.py
    lldb/examples/python/crashlog.py
    lldb/examples/python/delta.py
    lldb/examples/python/disasm-stress-test.py
    lldb/examples/python/disasm.py
    lldb/examples/python/file_extract.py
    lldb/examples/python/gdbremote.py
    lldb/examples/python/globals.py
    lldb/examples/python/lldb_module_utils.py
    lldb/examples/python/lldbtk.py
    lldb/examples/python/mach_o.py
    lldb/examples/python/memory.py
    lldb/examples/python/operating_system.py
    lldb/examples/python/performance.py
    lldb/examples/python/process_events.py
    lldb/examples/python/sbvalue.py
    lldb/examples/python/shadow.py
    lldb/examples/python/sources.py
    lldb/examples/python/stacks.py
    lldb/examples/python/symbolication.py
    lldb/examples/python/types.py
    lldb/examples/python/x86_64_linux_target_definition.py
    lldb/examples/python/x86_64_qemu_target_definition.py
    lldb/examples/python/x86_64_target_definition.py
    lldb/scripts/analyze-project-deps.py
    lldb/scripts/reproducer-replay.py
    lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py
    lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py
    lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py
    lldb/test/Shell/helper/build.py
    lldb/third_party/Python/module/progress/progress.py
    llvm/utils/DSAclean.py
    llvm/utils/DSAextract.py
    llvm/utils/benchmark/mingw.py
    llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py
    llvm/utils/lint/common_lint.py
    llvm/utils/lint/cpp_lint.py
    llvm/utils/lint/generic_lint.py
    llvm/utils/schedcover.py
    llvm/utils/testgen/mc-bundling-x86-gen.py
    openmp/runtime/tools/summarizeStats.py
    polly/test/update_check.py
    polly/utils/jscop2cloog.py
    polly/utils/pyscop/jscop2iscc.py

Removed: 
    


################################################################################
diff  --git a/clang/utils/clangdiag.py b/clang/utils/clangdiag.py
index 6baf65a8761c..4de8c570df7f 100755
--- a/clang/utils/clangdiag.py
+++ b/clang/utils/clangdiag.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/clang/utils/modfuzz.py b/clang/utils/modfuzz.py
index 61ca3272aca5..84707f471ada 100644
--- a/clang/utils/modfuzz.py
+++ b/clang/utils/modfuzz.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 
 # To use:
 #  1) Update the 'decls' list below with your fuzzing configuration.

diff  --git a/compiler-rt/lib/sanitizer_common/scripts/litlint_test.py b/compiler-rt/lib/sanitizer_common/scripts/litlint_test.py
index 3ce482d70444..30c9f16efed5 100755
--- a/compiler-rt/lib/sanitizer_common/scripts/litlint_test.py
+++ b/compiler-rt/lib/sanitizer_common/scripts/litlint_test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Tests for litlint.py
 #

diff  --git a/compiler-rt/test/sanitizer_common/android_commands/android_compile.py b/compiler-rt/test/sanitizer_common/android_commands/android_compile.py
index 4b880886b0c1..a57bc311bd52 100755
--- a/compiler-rt/test/sanitizer_common/android_commands/android_compile.py
+++ b/compiler-rt/test/sanitizer_common/android_commands/android_compile.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import os, sys, subprocess
 from android_common import *

diff  --git a/compiler-rt/test/sanitizer_common/android_commands/android_run.py b/compiler-rt/test/sanitizer_common/android_commands/android_run.py
index 8a97aa5f7b1b..41a587cb404c 100755
--- a/compiler-rt/test/sanitizer_common/android_commands/android_run.py
+++ b/compiler-rt/test/sanitizer_common/android_commands/android_run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import os, signal, sys, subprocess, tempfile
 from android_common import *

diff  --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
index 8fa480ed5f60..e4c50d7949a2 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import os, sys, subprocess
 

diff  --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
index 28f626900f0b..78d197483df1 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import os, sys, subprocess
 

diff  --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
index ad1b92277875..cbcc6029fc1a 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import json
 

diff  --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
index 8af3eec441f2..5ad15af3a33e 100755
--- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
+++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import glob, os, pipes, sys, subprocess
 

diff  --git a/debuginfo-tests/dexter/dexter.py b/debuginfo-tests/dexter/dexter.py
index 8190a4b4e22e..49ba85db43d9 100755
--- a/debuginfo-tests/dexter/dexter.py
+++ b/debuginfo-tests/dexter/dexter.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # DExTer : Debugging Experience Tester
 # ~~~~~~   ~         ~~         ~   ~~
 #

diff  --git a/debuginfo-tests/llgdb-tests/llgdb.py b/debuginfo-tests/llgdb-tests/llgdb.py
index 5f14497f628f..83b5ec686de7 100755
--- a/debuginfo-tests/llgdb-tests/llgdb.py
+++ b/debuginfo-tests/llgdb-tests/llgdb.py
@@ -1,4 +1,4 @@
-#!/bin/env python
+#!/usr/bin/env python
 """
 A gdb-compatible frontend for lldb that implements just enough
 commands to run the tests in the debuginfo-tests repository with lldb.

diff  --git a/libc/AOR_v20.02/math/tools/plot.py b/libc/AOR_v20.02/math/tools/plot.py
index 611c99a9e69f..8c7da5a8ffd7 100755
--- a/libc/AOR_v20.02/math/tools/plot.py
+++ b/libc/AOR_v20.02/math/tools/plot.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # ULP error plot tool.
 #

diff  --git a/libcxx/utils/google-benchmark/mingw.py b/libcxx/utils/google-benchmark/mingw.py
index 706ad559db9c..0b69692ca2a4 100644
--- a/libcxx/utils/google-benchmark/mingw.py
+++ b/libcxx/utils/google-benchmark/mingw.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 # encoding: utf-8
 
 import argparse

diff  --git a/lldb/examples/darwin/heap_find/heap.py b/lldb/examples/darwin/heap_find/heap.py
index a8bc377ffe4c..8fb2a8c95927 100644
--- a/lldb/examples/darwin/heap_find/heap.py
+++ b/lldb/examples/darwin/heap_find/heap.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # This module is designed to live inside the "lldb" python package

diff  --git a/lldb/examples/python/armv7_cortex_m_target_defintion.py b/lldb/examples/python/armv7_cortex_m_target_defintion.py
index 342de89c462f..e8f39ccb09e8 100755
--- a/lldb/examples/python/armv7_cortex_m_target_defintion.py
+++ b/lldb/examples/python/armv7_cortex_m_target_defintion.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #===-- armv7_cortex_m_target_definition.py.py ------------------*- C++ -*-===//
 #
 #                     The LLVM Compiler Infrastructure

diff  --git a/lldb/examples/python/bsd.py b/lldb/examples/python/bsd.py
index c66226e3710c..fdf5455fe69e 100755
--- a/lldb/examples/python/bsd.py
+++ b/lldb/examples/python/bsd.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import cmd

diff  --git a/lldb/examples/python/cmdtemplate.py b/lldb/examples/python/cmdtemplate.py
index 97af943e6de2..aa99e4c03beb 100644
--- a/lldb/examples/python/cmdtemplate.py
+++ b/lldb/examples/python/cmdtemplate.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # ---------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 1c1602b0131e..c9494d708d22 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/lldb/examples/python/delta.py b/lldb/examples/python/delta.py
index 1a1f060c5e5e..0176fb0b3345 100755
--- a/lldb/examples/python/delta.py
+++ b/lldb/examples/python/delta.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # This module will enable GDB remote packet logging when the

diff  --git a/lldb/examples/python/disasm-stress-test.py b/lldb/examples/python/disasm-stress-test.py
index 5d0ce96fbd68..241a73acd4ea 100755
--- a/lldb/examples/python/disasm-stress-test.py
+++ b/lldb/examples/python/disasm-stress-test.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import argparse
 import datetime

diff  --git a/lldb/examples/python/disasm.py b/lldb/examples/python/disasm.py
index 819a0522388e..20b441835f1a 100755
--- a/lldb/examples/python/disasm.py
+++ b/lldb/examples/python/disasm.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/lldb/examples/python/file_extract.py b/lldb/examples/python/file_extract.py
index decbba0b2997..7278ce54a8a7 100755
--- a/lldb/examples/python/file_extract.py
+++ b/lldb/examples/python/file_extract.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 
 import string
 import struct

diff  --git a/lldb/examples/python/gdbremote.py b/lldb/examples/python/gdbremote.py
index 52601c09d3be..804977259de7 100755
--- a/lldb/examples/python/gdbremote.py
+++ b/lldb/examples/python/gdbremote.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # This module will enable GDB remote packet logging when the

diff  --git a/lldb/examples/python/globals.py b/lldb/examples/python/globals.py
index 3e7734416422..96645afef00f 100755
--- a/lldb/examples/python/globals.py
+++ b/lldb/examples/python/globals.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # For the shells csh, tcsh:

diff  --git a/lldb/examples/python/lldb_module_utils.py b/lldb/examples/python/lldb_module_utils.py
index 2b2fea9d4f15..c0ac5751ce28 100644
--- a/lldb/examples/python/lldb_module_utils.py
+++ b/lldb/examples/python/lldb_module_utils.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import lldb

diff  --git a/lldb/examples/python/lldbtk.py b/lldb/examples/python/lldbtk.py
index 3734b14f95b2..a6a420ba1bd1 100644
--- a/lldb/examples/python/lldbtk.py
+++ b/lldb/examples/python/lldbtk.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import lldb

diff  --git a/lldb/examples/python/mach_o.py b/lldb/examples/python/mach_o.py
index 1780bc3e3209..03ab73b3be9d 100755
--- a/lldb/examples/python/mach_o.py
+++ b/lldb/examples/python/mach_o.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import cmd

diff  --git a/lldb/examples/python/memory.py b/lldb/examples/python/memory.py
index 9f8f7e384c42..26703462c2cd 100755
--- a/lldb/examples/python/memory.py
+++ b/lldb/examples/python/memory.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/lldb/examples/python/operating_system.py b/lldb/examples/python/operating_system.py
index bfa13f0568ea..f4a5d385320e 100644
--- a/lldb/examples/python/operating_system.py
+++ b/lldb/examples/python/operating_system.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import lldb
 import struct

diff  --git a/lldb/examples/python/performance.py b/lldb/examples/python/performance.py
index aec6b307f876..f90857808fc0 100755
--- a/lldb/examples/python/performance.py
+++ b/lldb/examples/python/performance.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/lldb/examples/python/process_events.py b/lldb/examples/python/process_events.py
index 6039ebf00200..3a1391c4476f 100755
--- a/lldb/examples/python/process_events.py
+++ b/lldb/examples/python/process_events.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/lldb/examples/python/sbvalue.py b/lldb/examples/python/sbvalue.py
index 6e512998da2f..cc7188a8ea08 100755
--- a/lldb/examples/python/sbvalue.py
+++ b/lldb/examples/python/sbvalue.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import lldb
 

diff  --git a/lldb/examples/python/shadow.py b/lldb/examples/python/shadow.py
index b14467c52c9a..73534dce5352 100644
--- a/lldb/examples/python/shadow.py
+++ b/lldb/examples/python/shadow.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import lldb

diff  --git a/lldb/examples/python/sources.py b/lldb/examples/python/sources.py
index 9684f7f6e786..38b3926768b2 100644
--- a/lldb/examples/python/sources.py
+++ b/lldb/examples/python/sources.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import lldb

diff  --git a/lldb/examples/python/stacks.py b/lldb/examples/python/stacks.py
index a676b82d097d..41729ec67443 100755
--- a/lldb/examples/python/stacks.py
+++ b/lldb/examples/python/stacks.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 import lldb
 import optparse

diff  --git a/lldb/examples/python/symbolication.py b/lldb/examples/python/symbolication.py
index a6daa802cda2..7b29489bd096 100755
--- a/lldb/examples/python/symbolication.py
+++ b/lldb/examples/python/symbolication.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/lldb/examples/python/types.py b/lldb/examples/python/types.py
index a401e373f481..513a03b2600a 100755
--- a/lldb/examples/python/types.py
+++ b/lldb/examples/python/types.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # Be sure to add the python path that points to the LLDB shared library.

diff  --git a/lldb/examples/python/x86_64_linux_target_definition.py b/lldb/examples/python/x86_64_linux_target_definition.py
index 13bde540f7e2..a39b9bed134f 100644
--- a/lldb/examples/python/x86_64_linux_target_definition.py
+++ b/lldb/examples/python/x86_64_linux_target_definition.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #===-- x86_64_linux_target_definition.py -----------------------------*- C++ -*-===//
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/lldb/examples/python/x86_64_qemu_target_definition.py b/lldb/examples/python/x86_64_qemu_target_definition.py
index aa081c161171..f0bed692baac 100644
--- a/lldb/examples/python/x86_64_qemu_target_definition.py
+++ b/lldb/examples/python/x86_64_qemu_target_definition.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #===-- x86_64_qemu_target_definition.py -----------------------------*- C++ -*-===//
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/lldb/examples/python/x86_64_target_definition.py b/lldb/examples/python/x86_64_target_definition.py
index 3f7f60dec9b0..533cafca4007 100644
--- a/lldb/examples/python/x86_64_target_definition.py
+++ b/lldb/examples/python/x86_64_target_definition.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #===-- x86_64_target_definition.py -----------------------------*- C++ -*-===//
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

diff  --git a/lldb/scripts/analyze-project-deps.py b/lldb/scripts/analyze-project-deps.py
index a120260abfe2..89da3dc9df7b 100755
--- a/lldb/scripts/analyze-project-deps.py
+++ b/lldb/scripts/analyze-project-deps.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 
 import argparse
 import itertools

diff  --git a/lldb/scripts/reproducer-replay.py b/lldb/scripts/reproducer-replay.py
index 4dd347058342..40d7cebca05d 100755
--- a/lldb/scripts/reproducer-replay.py
+++ b/lldb/scripts/reproducer-replay.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#!/usr/bin/env python3
 
 from multiprocessing import Pool
 import multiprocessing

diff  --git a/lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py b/lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py
index 394c24b4a880..3c949792983f 100644
--- a/lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py
+++ b/lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import lldb
 import struct

diff  --git a/lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py b/lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py
index 438538ca922e..26864bbc6aa3 100644
--- a/lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py
+++ b/lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import lldb
 import struct

diff  --git a/lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py b/lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py
index ff9a57367a2a..a91852965f92 100644
--- a/lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py
+++ b/lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import lldb
 import struct

diff  --git a/lldb/test/Shell/helper/build.py b/lldb/test/Shell/helper/build.py
index 3de2f3350318..5689373d37a5 100755
--- a/lldb/test/Shell/helper/build.py
+++ b/lldb/test/Shell/helper/build.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 
 from __future__ import print_function
 

diff  --git a/lldb/third_party/Python/module/progress/progress.py b/lldb/third_party/Python/module/progress/progress.py
index 3397cf043017..e4bd9d5fd5b4 100644
--- a/lldb/third_party/Python/module/progress/progress.py
+++ b/lldb/third_party/Python/module/progress/progress.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 from __future__ import print_function
 

diff  --git a/llvm/utils/DSAclean.py b/llvm/utils/DSAclean.py
index 789a825a0671..c5fb56b037eb 100755
--- a/llvm/utils/DSAclean.py
+++ b/llvm/utils/DSAclean.py
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#!/usr/bin/env python
 
 #changelog: 
 #10/13/2005b: replaced the # in tmp(.#*)* with alphanumeric and _, this will then remove

diff  --git a/llvm/utils/DSAextract.py b/llvm/utils/DSAextract.py
index 258aac47e82d..1d93f1e30c55 100755
--- a/llvm/utils/DSAextract.py
+++ b/llvm/utils/DSAextract.py
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#!/usr/bin/env python
 
 #this is a script to extract given named nodes from a dot file, with
 #the associated edges.  An edge is kept iff for edge x -> y

diff  --git a/llvm/utils/benchmark/mingw.py b/llvm/utils/benchmark/mingw.py
index 706ad559db9c..0b69692ca2a4 100644
--- a/llvm/utils/benchmark/mingw.py
+++ b/llvm/utils/benchmark/mingw.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 # encoding: utf-8
 
 import argparse

diff  --git a/llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py b/llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py
index f554d920104f..1cfbf2b56c70 100755
--- a/llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py
+++ b/llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 """ A small program to compute checksums of LLVM checkout.
 """
 from __future__ import absolute_import

diff  --git a/llvm/utils/lint/common_lint.py b/llvm/utils/lint/common_lint.py
index aec907929b42..641048b7ee5b 100644
--- a/llvm/utils/lint/common_lint.py
+++ b/llvm/utils/lint/common_lint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Common lint functions applicable to multiple types of files.
 

diff  --git a/llvm/utils/lint/cpp_lint.py b/llvm/utils/lint/cpp_lint.py
index 316ad9809035..4ef457e83daa 100755
--- a/llvm/utils/lint/cpp_lint.py
+++ b/llvm/utils/lint/cpp_lint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Checks C++ files to make sure they conform to LLVM standards, as specified in
 # http://llvm.org/docs/CodingStandards.html .

diff  --git a/llvm/utils/lint/generic_lint.py b/llvm/utils/lint/generic_lint.py
index c8f4835bb6a6..06218d7ea3c1 100755
--- a/llvm/utils/lint/generic_lint.py
+++ b/llvm/utils/lint/generic_lint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Checks files to make sure they conform to LLVM standards which can be applied
 # to any programming language: at present, line length and trailing whitespace.

diff  --git a/llvm/utils/schedcover.py b/llvm/utils/schedcover.py
index 9532f1b554bd..7cd2fcf2563f 100755
--- a/llvm/utils/schedcover.py
+++ b/llvm/utils/schedcover.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # This creates a CSV file from the output of the debug output of subtarget:
 #   llvm-tblgen --gen-subtarget --debug-only=subtarget-emitter

diff  --git a/llvm/utils/testgen/mc-bundling-x86-gen.py b/llvm/utils/testgen/mc-bundling-x86-gen.py
index 5c1c6c456280..1032c9c5a1f3 100644
--- a/llvm/utils/testgen/mc-bundling-x86-gen.py
+++ b/llvm/utils/testgen/mc-bundling-x86-gen.py
@@ -1,5 +1,5 @@
 
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # Auto-generates an exhaustive and repetitive test for correct bundle-locked
 # alignment on x86.

diff  --git a/openmp/runtime/tools/summarizeStats.py b/openmp/runtime/tools/summarizeStats.py
index f2c5f5e6c95f..7daed2e1cd5c 100644
--- a/openmp/runtime/tools/summarizeStats.py
+++ b/openmp/runtime/tools/summarizeStats.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import pandas as pd
 import numpy as np

diff  --git a/polly/test/update_check.py b/polly/test/update_check.py
index 53c0845b8907..9890843a6810 100644
--- a/polly/test/update_check.py
+++ b/polly/test/update_check.py
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#!/usr/bin/env python3
 # -*- coding: UTF-8 -*-
 
 # Polly/LLVM update_check.py

diff  --git a/polly/utils/jscop2cloog.py b/polly/utils/jscop2cloog.py
index 0d6264618718..29383974f267 100755
--- a/polly/utils/jscop2cloog.py
+++ b/polly/utils/jscop2cloog.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 import argparse, os
 import json
 

diff  --git a/polly/utils/pyscop/jscop2iscc.py b/polly/utils/pyscop/jscop2iscc.py
index 3267e8ebc3c2..42f4cc180f1f 100755
--- a/polly/utils/pyscop/jscop2iscc.py
+++ b/polly/utils/pyscop/jscop2iscc.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 import argparse, isl, os
 import json
 


        


More information about the llvm-commits mailing list