Skip to content

Commit 515bc8c

Browse files
author
serge-sans-paille
committed
Harmonize Python shebang
Differential Revision: https://reviews.llvm.org/D83857
1 parent a2a3adc commit 515bc8c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+60
-60
lines changed

clang/utils/clangdiag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

clang/utils/modfuzz.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#!/usr/bin/env python
22

33
# To use:
44
# 1) Update the 'decls' list below with your fuzzing configuration.

compiler-rt/lib/sanitizer_common/scripts/litlint_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
# Tests for litlint.py
44
#

compiler-rt/test/sanitizer_common/android_commands/android_compile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import os, sys, subprocess
44
from android_common import *

compiler-rt/test/sanitizer_common/android_commands/android_run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import os, signal, sys, subprocess, tempfile
44
from android_common import *

compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import os, sys, subprocess
44

compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import os, sys, subprocess
44

compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import json
44

compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import glob, os, pipes, sys, subprocess
44

debuginfo-tests/dexter/dexter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
# DExTer : Debugging Experience Tester
33
# ~~~~~~ ~ ~~ ~ ~~
44
#

debuginfo-tests/llgdb-tests/llgdb.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/bin/env python
1+
#!/usr/bin/env python
22
"""
33
A gdb-compatible frontend for lldb that implements just enough
44
commands to run the tests in the debuginfo-tests repository with lldb.

libc/AOR_v20.02/math/tools/plot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
# ULP error plot tool.
44
#

libcxx/utils/google-benchmark/mingw.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#!/usr/bin/env python
22
# encoding: utf-8
33

44
import argparse

lldb/examples/darwin/heap_find/heap.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# This module is designed to live inside the "lldb" python package

lldb/examples/python/armv7_cortex_m_target_defintion.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#===-- armv7_cortex_m_target_definition.py.py ------------------*- C++ -*-===//
33
#
44
# The LLVM Compiler Infrastructure

lldb/examples/python/bsd.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
from __future__ import print_function
33

44
import cmd

lldb/examples/python/cmdtemplate.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
# ---------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

lldb/examples/python/crashlog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

lldb/examples/python/delta.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# This module will enable GDB remote packet logging when the

lldb/examples/python/disasm-stress-test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import argparse
44
import datetime

lldb/examples/python/disasm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

lldb/examples/python/file_extract.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#!/usr/bin/env python
22

33
import string
44
import struct

lldb/examples/python/gdbremote.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# This module will enable GDB remote packet logging when the

lldb/examples/python/globals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# For the shells csh, tcsh:

lldb/examples/python/lldb_module_utils.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
from __future__ import print_function
33

44
import lldb

lldb/examples/python/lldbtk.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
from __future__ import print_function
33

44
import lldb

lldb/examples/python/mach_o.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
from __future__ import print_function
33

44
import cmd

lldb/examples/python/memory.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

lldb/examples/python/operating_system.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import lldb
44
import struct

lldb/examples/python/performance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

lldb/examples/python/process_events.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

lldb/examples/python/sbvalue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import lldb
44

lldb/examples/python/shadow.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
from __future__ import print_function
33

44
import lldb

lldb/examples/python/sources.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
from __future__ import print_function
33

44
import lldb

lldb/examples/python/stacks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
from __future__ import print_function
33
import lldb
44
import optparse

lldb/examples/python/symbolication.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

lldb/examples/python/types.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
#----------------------------------------------------------------------
44
# Be sure to add the python path that points to the LLDB shared library.

lldb/examples/python/x86_64_linux_target_definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#===-- x86_64_linux_target_definition.py -----------------------------*- C++ -*-===//
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

lldb/examples/python/x86_64_qemu_target_definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#===-- x86_64_qemu_target_definition.py -----------------------------*- C++ -*-===//
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

lldb/examples/python/x86_64_target_definition.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#===-- x86_64_target_definition.py -----------------------------*- C++ -*-===//
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

lldb/scripts/analyze-project-deps.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#!/usr/bin/env python
22

33
import argparse
44
import itertools

lldb/scripts/reproducer-replay.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python3
1+
#!/usr/bin/env python3
22

33
from multiprocessing import Pool
44
import multiprocessing

lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import lldb
44
import struct

lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import lldb
44
import struct

lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import lldb
44
import struct

lldb/test/Shell/helper/build.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#!/usr/bin/env python
22

33
from __future__ import print_function
44

lldb/third_party/Python/module/progress/progress.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
from __future__ import print_function
44

llvm/utils/DSAclean.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/python
1+
#!/usr/bin/env python
22

33
#changelog:
44
#10/13/2005b: replaced the # in tmp(.#*)* with alphanumeric and _, this will then remove

llvm/utils/DSAextract.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/python
1+
#!/usr/bin/env python
22

33
#this is a script to extract given named nodes from a dot file, with
44
#the associated edges. An edge is kept iff for edge x -> y

llvm/utils/benchmark/mingw.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python
1+
#!/usr/bin/env python
22
# encoding: utf-8
33

44
import argparse

llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
""" A small program to compute checksums of LLVM checkout.
33
"""
44
from __future__ import absolute_import

llvm/utils/lint/common_lint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#
33
# Common lint functions applicable to multiple types of files.
44

llvm/utils/lint/cpp_lint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#
33
# Checks C++ files to make sure they conform to LLVM standards, as specified in
44
# http://llvm.org/docs/CodingStandards.html .

llvm/utils/lint/generic_lint.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
#
33
# Checks files to make sure they conform to LLVM standards which can be applied
44
# to any programming language: at present, line length and trailing whitespace.

llvm/utils/schedcover.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
# This creates a CSV file from the output of the debug output of subtarget:
44
# llvm-tblgen --gen-subtarget --debug-only=subtarget-emitter

llvm/utils/testgen/mc-bundling-x86-gen.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
#!/usr/bin/python
2+
#!/usr/bin/env python
33

44
# Auto-generates an exhaustive and repetitive test for correct bundle-locked
55
# alignment on x86.

openmp/runtime/tools/summarizeStats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
import pandas as pd
44
import numpy as np

polly/test/update_check.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#! /usr/bin/env python3
1+
#!/usr/bin/env python3
22
# -*- coding: UTF-8 -*-
33

44
# Polly/LLVM update_check.py

polly/utils/jscop2cloog.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
import argparse, os
33
import json
44

polly/utils/pyscop/jscop2iscc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22
import argparse, isl, os
33
import json
44

0 commit comments

Comments
 (0)