From 515bc8c1554f03515565878ea3d35cffdc6fd195 Mon Sep 17 00:00:00 2001 From: serge-sans-paille Date: Wed, 15 Jul 2020 09:31:13 +0200 Subject: [PATCH] Harmonize Python shebang Differential Revision: https://reviews.llvm.org/D83857 --- clang/utils/clangdiag.py | 2 +- clang/utils/modfuzz.py | 2 +- compiler-rt/lib/sanitizer_common/scripts/litlint_test.py | 2 +- compiler-rt/test/sanitizer_common/android_commands/android_compile.py | 2 +- compiler-rt/test/sanitizer_common/android_commands/android_run.py | 2 +- compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py | 2 +- compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py | 2 +- compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py | 2 +- compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py | 2 +- debuginfo-tests/dexter/dexter.py | 2 +- debuginfo-tests/llgdb-tests/llgdb.py | 2 +- libc/AOR_v20.02/math/tools/plot.py | 2 +- libcxx/utils/google-benchmark/mingw.py | 2 +- lldb/examples/darwin/heap_find/heap.py | 2 +- lldb/examples/python/armv7_cortex_m_target_defintion.py | 2 +- lldb/examples/python/bsd.py | 2 +- lldb/examples/python/cmdtemplate.py | 2 +- lldb/examples/python/crashlog.py | 2 +- lldb/examples/python/delta.py | 2 +- lldb/examples/python/disasm-stress-test.py | 2 +- lldb/examples/python/disasm.py | 2 +- lldb/examples/python/file_extract.py | 2 +- lldb/examples/python/gdbremote.py | 2 +- lldb/examples/python/globals.py | 2 +- lldb/examples/python/lldb_module_utils.py | 2 +- lldb/examples/python/lldbtk.py | 2 +- lldb/examples/python/mach_o.py | 2 +- lldb/examples/python/memory.py | 2 +- lldb/examples/python/operating_system.py | 2 +- lldb/examples/python/performance.py | 2 +- lldb/examples/python/process_events.py | 2 +- lldb/examples/python/sbvalue.py | 2 +- lldb/examples/python/shadow.py | 2 +- lldb/examples/python/sources.py | 2 +- lldb/examples/python/stacks.py | 2 +- lldb/examples/python/symbolication.py | 2 +- lldb/examples/python/types.py | 2 +- lldb/examples/python/x86_64_linux_target_definition.py | 2 +- lldb/examples/python/x86_64_qemu_target_definition.py | 2 +- lldb/examples/python/x86_64_target_definition.py | 2 +- lldb/scripts/analyze-project-deps.py | 2 +- lldb/scripts/reproducer-replay.py | 2 +- .../API/functionalities/plugins/python_os_plugin/operating_system.py | 2 +- .../API/functionalities/plugins/python_os_plugin/operating_system2.py | 2 +- .../python_os_plugin/stepping_plugin_threads/operating_system.py | 2 +- lldb/test/Shell/helper/build.py | 2 +- lldb/third_party/Python/module/progress/progress.py | 2 +- llvm/utils/DSAclean.py | 2 +- llvm/utils/DSAextract.py | 2 +- llvm/utils/benchmark/mingw.py | 2 +- llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py | 2 +- llvm/utils/lint/common_lint.py | 2 +- llvm/utils/lint/cpp_lint.py | 2 +- llvm/utils/lint/generic_lint.py | 2 +- llvm/utils/schedcover.py | 2 +- llvm/utils/testgen/mc-bundling-x86-gen.py | 2 +- openmp/runtime/tools/summarizeStats.py | 2 +- polly/test/update_check.py | 2 +- polly/utils/jscop2cloog.py | 2 +- polly/utils/pyscop/jscop2iscc.py | 2 +- 60 files changed, 60 insertions(+), 60 deletions(-) diff --git a/clang/utils/clangdiag.py b/clang/utils/clangdiag.py index 6baf65a..4de8c57 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 61ca327..84707f4 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 3ce482d..30c9f16 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 4b88088..a57bc31 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 8a97aa5..41a587c 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 8fa480e..e4c50d7 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 28f6269..78d1974 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 ad1b922..cbcc602 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 8af3eec..5ad15af 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 8190a4b..49ba85d 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 5f14497..83b5ec6 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 611c99a..8c7da5a 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 706ad55..0b69692 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 a8bc377..8fb2a8c9 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 342de89..e8f39cc 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 c66226e..fdf5455 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 97af943..aa99e4c 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 1c1602b..c9494d7 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 1a1f060..0176fb0 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 5d0ce96..241a73a 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 819a052..20b4418 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 decbba0..7278ce5 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 52601c0..8049772 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 3e77344..96645af 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 2b2fea9..c0ac575 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 3734b14..a6a420b 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 1780bc3..03ab73b 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 9f8f7e3..2670346 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 bfa13f0..f4a5d38 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 aec6b30..f908578 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 6039ebf..3a1391c 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 6e51299..cc7188a 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 b14467c..73534dc 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 9684f7f..38b3926 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 a676b82..41729ec 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 a6daa802..7b29489 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 a401e37..513a03b 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 13bde54..a39b9be 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 aa081c1..f0bed69 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 3f7f60d..533cafc 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 a120260..89da3dc 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 4dd3470..40d7ceb 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 394c24b..3c94979 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 438538c..26864bb 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 ff9a573..a918529 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 3de2f33..5689373 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 3397cf0..e4bd9d5 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 789a825..c5fb56b 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 258aac4..1d93f1e 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 706ad55..0b69692 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 f554d92..1cfbf2b 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 aec9079..641048b 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 316ad98..4ef457e 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 c8f4835..06218d7 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 9532f1b..7cd2fcf 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 5c1c6c4..1032c9c 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 f2c5f5e..7daed2e 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 53c0845..9890843 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 0d62646..2938397 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 3267e8e..42f4cc1 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 -- 2.7.4