Harmonize Python shebang
authorserge-sans-paille <sguelton@redhat.com>
Wed, 15 Jul 2020 07:31:13 +0000 (09:31 +0200)
committerserge-sans-paille <sguelton@redhat.com>
Thu, 16 Jul 2020 19:53:45 +0000 (21:53 +0200)
Differential Revision: https://reviews.llvm.org/D83857

60 files changed:
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

index 6baf65a..4de8c57 100755 (executable)
@@ -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.
index 61ca327..84707f4 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 
 # To use:
 #  1) Update the 'decls' list below with your fuzzing configuration.
index 8a97aa5..41a587c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import os, signal, sys, subprocess, tempfile
 from android_common import *
index 8190a4b..49ba85d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 # DExTer : Debugging Experience Tester
 # ~~~~~~   ~         ~~         ~   ~~
 #
index 5f14497..83b5ec6 100755 (executable)
@@ -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.
index 611c99a..8c7da5a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 # ULP error plot tool.
 #
index 706ad55..0b69692 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 # encoding: utf-8
 
 import argparse
index a8bc377..8fb2a8c 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # This module is designed to live inside the "lldb" python package
index 342de89..e8f39cc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #===-- armv7_cortex_m_target_definition.py.py ------------------*- C++ -*-===//
 #
 #                     The LLVM Compiler Infrastructure
index c66226e..fdf5455 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import cmd
index 97af943..aa99e4c 100644 (file)
@@ -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.
index 1c1602b..c9494d7 100755 (executable)
@@ -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.
index 1a1f060..0176fb0 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # This module will enable GDB remote packet logging when the
index 5d0ce96..241a73a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import argparse
 import datetime
index 819a052..20b4418 100755 (executable)
@@ -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.
index decbba0..7278ce5 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 
 import string
 import struct
index 52601c0..8049772 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # This module will enable GDB remote packet logging when the
index 3e77344..96645af 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 #----------------------------------------------------------------------
 # For the shells csh, tcsh:
index 2b2fea9..c0ac575 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import lldb
index 3734b14..a6a420b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import lldb
index 1780bc3..03ab73b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import cmd
index 9f8f7e3..2670346 100755 (executable)
@@ -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.
index bfa13f0..f4a5d38 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import lldb
 import struct
index aec6b30..f908578 100755 (executable)
@@ -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.
index 6039ebf..3a1391c 100755 (executable)
@@ -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.
index 6e51299..cc7188a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import lldb
 
index b14467c..73534dc 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import lldb
index 9684f7f..38b3926 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 
 import lldb
index a676b82..41729ec 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 from __future__ import print_function
 import lldb
 import optparse
index a6daa80..7b29489 100755 (executable)
@@ -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.
index a401e37..513a03b 100755 (executable)
@@ -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.
index 13bde54..a39b9be 100644 (file)
@@ -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.
index aa081c1..f0bed69 100644 (file)
@@ -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.
index 3f7f60d..533cafc 100644 (file)
@@ -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.
index a120260..89da3dc 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 
 import argparse
 import itertools
index 4dd3470..40d7ceb 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#!/usr/bin/env python3
 
 from multiprocessing import Pool
 import multiprocessing
index 3de2f33..5689373 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 
 from __future__ import print_function
 
index 789a825..c5fb56b 100755 (executable)
@@ -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
index 258aac4..1d93f1e 100755 (executable)
@@ -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
index 706ad55..0b69692 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#!/usr/bin/env python
 # encoding: utf-8
 
 import argparse
index f554d92..1cfbf2b 100755 (executable)
@@ -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
index aec9079..641048b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 #
 # Common lint functions applicable to multiple types of files.
 
index 316ad98..4ef457e 100755 (executable)
@@ -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 .
index c8f4835..06218d7 100755 (executable)
@@ -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.
index 9532f1b..7cd2fcf 100755 (executable)
@@ -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
index 5c1c6c4..1032c9c 100644 (file)
@@ -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.
index f2c5f5e..7daed2e 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 
 import pandas as pd
 import numpy as np
index 53c0845..9890843 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python3
+#!/usr/bin/env python3
 # -*- coding: UTF-8 -*-
 
 # Polly/LLVM update_check.py
index 0d62646..2938397 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 import argparse, os
 import json
 
index 3267e8e..42f4cc1 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python
 import argparse, isl, os
 import json