change all shebangs to Python3
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 8 Feb 2022 20:39:18 +0000 (20:39 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 8 Feb 2022 20:39:18 +0000 (20:39 +0000)
find . -name "*.py" -exec sed "s|\!/usr/bin/env python$|\!/usr/bin/env python3|g" -i {} \;
===================================================================

Gbp-Pq: Name python3-shebang.patch

115 files changed:
clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py
clang-tools-extra/clang-tidy/add_new_check.py
clang-tools-extra/clang-tidy/rename_check.py
clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
clang-tools-extra/clangd/include-mapping/cppreference_parser.py
clang-tools-extra/clangd/include-mapping/gen_std.py
clang-tools-extra/clangd/include-mapping/test.py
clang-tools-extra/test/clang-tidy/check_clang_tidy.py
clang/bindings/python/examples/cindex/cindex-dump.py
clang/bindings/python/examples/cindex/cindex-includes.py
clang/docs/tools/dump_ast_matchers.py
clang/docs/tools/dump_format_style.py
clang/test/AST/gen_ast_dump_json_test.py
clang/tools/clang-format/git-clang-format
clang/tools/scan-build-py/bin/analyze-build
clang/tools/scan-build-py/bin/intercept-build
clang/tools/scan-build-py/bin/scan-build
clang/tools/scan-build-py/libexec/analyze-cc
clang/tools/scan-view/bin/scan-view
clang/tools/scan-view/share/startfile.py
clang/utils/ABITest/ABITestGen.py
clang/utils/CIndex/completion_logger_server.py
clang/utils/CaptureCmd
clang/utils/CmpDriver
clang/utils/FindSpecRefs
clang/utils/FuzzTest
clang/utils/TestUtils/deep-stack.py
clang/utils/analyzer/CmpRuns.py
clang/utils/analyzer/SATestAdd.py
clang/utils/analyzer/SATestBuild.py
clang/utils/analyzer/SATestUpdateDiffs.py
clang/utils/analyzer/SumTimerInfo.py
clang/utils/analyzer/exploded-graph-rewriter.py
clang/utils/check_cfc/check_cfc.py
clang/utils/check_cfc/obj_diff.py
clang/utils/check_cfc/test_check_cfc.py
clang/utils/creduce-clang-crash.py
clang/utils/hmaptool/hmaptool
clang/utils/modfuzz.py
clang/utils/token-delta.py
compiler-rt/lib/asan/scripts/asan_symbolize.py
compiler-rt/lib/dfsan/scripts/build-libc-list.py
compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py
compiler-rt/lib/sanitizer_common/scripts/cpplint.py
compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py
compiler-rt/lib/sanitizer_common/scripts/litlint.py
compiler-rt/lib/sanitizer_common/scripts/sancov.py
libcxx/utils/cat_files.py
libcxx/utils/generate_feature_test_macro_components.py
libcxx/utils/google-benchmark/tools/compare.py
libcxx/utils/google-benchmark/tools/strip_asm.py
libcxx/utils/merge_archives.py
libcxx/utils/sym_diff.py
lld/utils/benchmark.py
lldb/examples/python/file_extract.py
lldb/packages/Python/lldbsuite/test/bench.py
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
lldb/scripts/analyze-project-deps.py
lldb/scripts/verify_api.py
lldb/third_party/Python/module/pexpect-4.6/pexpect/FSM.py
lldb/utils/lui/lui.py
lldb/utils/lui/sandbox.py
llvm/examples/Kaleidoscope/MCJIT/cached/genk-timing.py
llvm/examples/Kaleidoscope/MCJIT/cached/split-lib.py
llvm/examples/Kaleidoscope/MCJIT/complete/genk-timing.py
llvm/examples/Kaleidoscope/MCJIT/complete/split-lib.py
llvm/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py
llvm/test/BugPoint/compile-custom.ll.py
llvm/test/Other/opt-bisect-helper.py
llvm/test/TableGen/JSON-check.py
llvm/tools/opt-viewer/opt-diff.py
llvm/tools/opt-viewer/opt-stats.py
llvm/tools/opt-viewer/opt-viewer.py
llvm/tools/opt-viewer/optrecord.py
llvm/utils/Misc/zkill
llvm/utils/abtest.py
llvm/utils/benchmark/mingw.py
llvm/utils/benchmark/tools/compare.py
llvm/utils/benchmark/tools/strip_asm.py
llvm/utils/bisect
llvm/utils/bisect-skip-count
llvm/utils/bugpoint_gisel_reducer.py
llvm/utils/chunk-print-before-all.py
llvm/utils/clang-parse-diagnostics-file
llvm/utils/create_ladder_graph.py
llvm/utils/extract_symbols.py
llvm/utils/extract_vplan.py
llvm/utils/gn/build/run_tablegen.py
llvm/utils/gn/build/symlink_or_copy.py
llvm/utils/gn/build/sync_source_lists_from_cmake.py
llvm/utils/gn/build/write_cmake_config.py
llvm/utils/gn/build/write_vcsrevision.py
llvm/utils/gn/get.py
llvm/utils/gn/gn.py
llvm/utils/indirect_calls.py
llvm/utils/lit/lit/ProgressBar.py
llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
llvm/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py
llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py
llvm/utils/lit/tests/Inputs/shtest-env/print_environment.py
llvm/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.py
llvm/utils/lit/tests/Inputs/shtest-shell/check_args.py
llvm/utils/lit/tests/Inputs/shtest-shell/check_path.py
llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py
llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py
llvm/utils/llvm-gisel-cov.py
llvm/utils/prepare-code-coverage-artifact.py
llvm/utils/release/findRegressions-nightly.py
llvm/utils/release/findRegressions-simple.py
llvm/utils/shuffle_fuzz.py
llvm/utils/shuffle_select_fuzz_tester.py
llvm/utils/sort_includes.py
llvm/utils/unicode-case-fold.py
llvm/utils/wciia.py

index 8655af137bb2798e7e9998d52f5a6c7971f166f5..e95ba59a421c5b343b023ce402280f94548cbffc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #=- run-find-all-symbols.py - Parallel find-all-symbols runner -*- python  -*-=#
 #
index 14fcfe8d49ff3311e23557a3d84ad03977def013..ee7e682690b79947203bd636dc943f1dbdea3e84 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- add_new_check.py - clang-tidy check generator ---------*- python -*--===#
 #
index 2410041fd5d2d8f667f1710733b4050d26ec00f9..976a02100cd6c5b2569a47e8fb3face7fb42e662 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- rename_check.py - clang-tidy check renamer ------------*- python -*--===#
 #
index 6bd05531333ba99539c128a62ea028e2cc6c9a2b..9e134123ef44ea3301a715d2a3e75903ed0e674a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- clang-tidy-diff.py - ClangTidy Diff Checker -----------*- python -*--===#
 #
index 9fda888c56735f505d8cdbcfd35496e7ff9e38b2..7a95035f4b07451a40aefde1354769ef34753be4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- run-clang-tidy.py - Parallel clang-tidy runner --------*- python -*--===#
 #
index fd3b8a6837d695ef30911500658a6a34f06556f4..a01edb4575db5272c4e63ee023c07ede62a32848 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===- cppreference_parser.py -  ------------------------------*- python -*--===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 1cfe2c026b4b8933d7a274ee70d9129e1d4b473d..3fd8d6b3116e5af4b8023a167c1833fb2df7b75e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===- gen_std.py -  ------------------------------------------*- python -*--===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 9fad952b2e97ce5209e0b429262c7433842a2b29..c4f117be4e452babb13f8cbc68d4bf0ea3b0cd94 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===- test.py -  ---------------------------------------------*- python -*--===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 5ebe3a1c149117443312a818de4b1e4043d62a0f..fc39e6b74802f032518acf20bbdc4741f0adc4e7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- check_clang_tidy.py - ClangTidy Test Helper ------------*- python -*--===#
 #
index 46073b285cb36284e02c300f80a3eb6d29790a42..fc513c7eeaf68e24860e089c497914fe2943f309 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 #===- cindex-dump.py - cindex/Python Source Dump -------------*- python -*--===#
 #
index ec1fbc0c3edb40651f927727cb3784f7ef019553..be60034262baa084c7c5b911b084d114740201ec 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 #===- cindex-includes.py - cindex/Python Inclusion Graph -----*- python -*--===#
 #
index 2a26d10f7a04dacd075ca63685a9d63be734c11f..6a575a2b91d5d74d8297901c332e5b7035fdb877 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # A tool to parse ASTMatchers.h and update the documentation in
 # ../LibASTMatchersReference.html automatically. Run from the
 # directory in which this file is located to update the docs.
index fd5837055789fb31ae06ed338015373820358df0..2d9ed451788051b2fa424eb884c2192598c6ba9d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # A tool to parse the FormatStyle struct from Format.h and update the
 # documentation in ../ClangFormatStyleOptions.rst automatically.
 # Run from the directory in which this file is located to update the docs.
index f783c79faef863c55528c9d09e7ba8f263f2d4f8..7043ade0f78f512eef90c85fe9d8e7a910bc0f87 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 from collections import OrderedDict
index 0233ceb3a868daa87db398289148e9836688c07d..16bc55f9876296afdb3e37a5e2c69d82805fdf62 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
 #
index b3f61429906c4ae697c9df495f3f82a2093955e0..636b5aa4dd36db666bdb5c1dffd9d1e6045fbc78 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 # See https://llvm.org/LICENSE.txt for license information.
index 9ecde39984434ba919e9c46b49069a31594bee8e..dcd0473ef548958883f24225b0ea6589a215f7c8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 # See https://llvm.org/LICENSE.txt for license information.
index a341751d993a26359c71ba6da36e9333a2f635e0..3e5a5ade304c2eaafe45a64b1915dbb05efd8af7 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 # See https://llvm.org/LICENSE.txt for license information.
index 36bbcd93f9871ada3158a1893cc32bc34f086c32..fbdbde8f5b2e63b3a6bcc76296d19d5cb1e97cde 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 # See https://llvm.org/LICENSE.txt for license information.
index 876f6aa95d5d4bea1b741b9e78f3cb0cd3aa5f37..006a3ad6106e88b6adb68b44ed721618b13187aa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index 9eb548bc4329beef098652a93b6f7aff868b8ccd..cdf3db27939ab8e494e08a41ec0122d3f5a02ab8 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 """Utility for opening a file using the default application in a cross-platform
index 93a6de93068d466b33174f58e6d343c7e11c2d9a..efb35fa73dcb6a85554387db9af678d74bbf8f5f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import absolute_import, division, print_function
 from pprint import pprint
index 201667117fc2f96976d25b872915d990657f8472..02d7cd6fc8853ea7587eb183bb31111f288d7b35 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import absolute_import, division, print_function
 import sys
 from socket import *
index 705585c3bb041fd14c3b0c446c7fe2a86748022a..5ffdfe560edf0a3315825bc24d314e14709402ff 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """CaptureCmd - A generic tool for capturing information about the
 invocations of another program.
index 12ce7a3250f66b71d0c01b72cd58d2009b84c6ab..c2b6ab5ecb1aa51698ab029f0b3d52741da5e780 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 A simple utility that compares tool invocations and exit codes issued by
index 9097f93f28d631ddc418ecbddb2af82285aa91a4..3ad581b3dd7d1f9c28947ed49f7b62169fba889a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import re
index 0e043df7cf08e4e88d3e5f5fcce7835b59b73f26..c4c956b6eb501dd6f916766624e947e0b40e5b85 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 This is a generic fuzz testing tool, see --help for more information.
index 10bf47acb1f777a5b048402d7447a0e7b7b94c79..5fb8d0df8ed15b927d15ba65827667ff32817816 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import absolute_import, division, print_function
 def pcall(f, N):
index 7afe865d77f2bb3be8b7fdb898fe7051f0992fe5..b9fa30ccd53473d48a5c3478faf0294bd06c9ca1 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 CmpRuns - A simple tool for comparing two static analyzer runs to determine
index 9d0919345182fcba13b3a90454ec6330fe9dbb8c..fc2d6899d103007b2a61261475dd6a31c924bd57 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Static Analyzer qualification infrastructure: adding a new project to
index ed5c7379bb5b49b83ce185002037ede5645cac22..c6fe8bb9a0f8d4f452c07ae6058e994cea0fbda6 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Static Analyzer qualification infrastructure.
index 69b3383beaf17d24d0b230a239a5bec68bba32fe..a58e02ec1fb1ce320c4e2c9cb6a1116d28e735e0 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Update reference results for static analyzer.
index eed17e02e32e9022163e429b0289771f80cc4410..cfe2dcbee455ff3b2ec6d409ce2ffb2ffb3a7dad 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Script to Summarize statistics in the scan-build output.
index 54d87addd3da3787c623223d16aa9e1f4988fad7..fb6d1cc8ec35cf7f5c6e01db5967bbc175056af9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- exploded-graph-rewriter.py - ExplodedGraph dump tool -----*- python -*--#
 #
index 311f502f800b3ce24e9c013893bbfeb113da47b3..0bbbc0886fab9a2b386666f515f1d4c76a6d5239 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Check CFC - Check Compile Flow Consistency
 
index a0951c5bcdee48989d9e55fa21e12d8ca233c32d..b3866948302765f8c94213da13fc77ccfe5802ab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import absolute_import, division, print_function
 
index 0808252a2c60c1244d400b1d13b605fec1ff2dd0..6f149ebcc7a41e57f3aa9a2024f99d84a04b4562 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Test internal functions within check_cfc.py."""
 
index 08056e52b8264f9296f781830db6d477ae06f196..b4db5e5cfcd7f69f69720cc427302b16f783d36e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Calls C-Reduce to create a minimal reproducer for clang crashes.
 
 Output files:
index e647cde6bc46a942360a5888281901e63d0026aa..7ed2fdf674b1c04a408a2cd1d7458733cf7e43a2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import absolute_import, division, print_function
 
 import json
index 84707f471ada1ea8fda045afe4bf2a0223a4c9a2..ad743927a169689a60173e660a9329ee13367e0a 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # To use:
 #  1) Update the 'decls' list below with your fuzzing configuration.
index 62b4eb3c776c374d634a8ab977a4aa0b787b6b01..022fb2f8b58f976b5544cf4b1d6b21dce237a014 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import absolute_import, division, print_function
 import os
index ab04b1c67e5a8afd93711db3d7e15a2864db3f23..6101881ba238db18ff14e39c4f4f08785f560b3c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===- lib/asan/scripts/asan_symbolize.py -----------------------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 40805c0191602e9a9f7d844607173ab3730bafbc..e1df01acafdee77f4e8bb03e70252e553eeb0392 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===- lib/dfsan/scripts/build-libc-list.py ---------------------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 579e481a237ac76835b0e57cc595d711f6222cdf..c5d8d5b45ea6f1ef62bef8c1b514b09043b69bb5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===- lib/fuzzer/scripts/unbalanced_allocs.py ------------------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 1262e5b12e769741084662f075aa57f15f929292..cd0ab5389e5247e08126061fa3300a1af81b5333 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Copyright (c) 2009 Google Inc. All rights reserved.
 #
index 6585a42dc81b867db69465a96b4f0aa705fd98f7..43f872faef9c27f205283ce6278480d411585143 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===- lib/sanitizer_common/scripts/gen_dynamic_list.py ---------------------===#
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index da6ef4bab4eef7e8670faf0dc038a644929a7e17..6010d0f732ca8dc1e457041b4a67f13258b72e2a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # litlint
 #
index 759eb0cb8bd5c8ee1ed658f97be38a26a185ca84..0bf6c856b5c38b14b372388a332a7a00ac864997 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Merge or print the coverage data collected by asan's coverage.
 # Input files are sequences of 4-byte integers.
 # We need to merge these integers into a set and then
index ac4f3869669d9582abb436b24fa9ee0144c095ba..fc7432267fc553cb30bf70b21f75de7c7a76d7f3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===----------------------------------------------------------------------===##
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 9fb740f363906fb4cf8c4d94c5f4715cd06b8d70..8b63a3f750ac7e0861387e1d70e82e69cd46d55d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 from builtins import range
index 01d2c89f50fbb5b77dd5d1688c51214f4a8a36cf..8cefdd17c1a5a3ecac9425f63de30244c2fa5936 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import unittest
 """
index 9030550b43bece88d41bac337e26004a109232d5..d131dc719414c45e10577570de5d3b41656a8fc3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 strip_asm.py - Cleanup ASM output for the specified file
index 2fcb474d3d5df7c0884bd9a35f70436d64afb7c0..704e3375b6370926dbee1a5b3fe08aa03b76cedd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===----------------------------------------------------------------------===##
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 6bd1b57e0a492e5d5d08d8d4a66d73879776c29b..749519d4e0ad555eda7cbea8311f3b571973863e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #===----------------------------------------------------------------------===##
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 47490b9a98289f22a14018a1e54884cf5a90f4cf..6eefa91b38c14047766f870e5d7c2dadfe0cdf2b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
 # See https://llvm.org/LICENSE.txt for license information.
index 7278ce54a8a740e702ab3d0e121a866703abdfff..9f5a211e264ecc88e5a4b46b26b4f1126641f3c9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import string
 import struct
index a9661b6d022529f308a03b30da5b26789850c6e6..576b89af98af0fadd54c77c5f196015eb61acc7c 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 A simple bench runner which delegates to the ./dotest.py test driver to run the
index df057d5e63aa6a9402c667386d41d07dec33ac64..46e324fa9fc697d57d8e3a08be342a98daf9bd4d 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import binascii
 import json
index 89da3dc9df7b3c632b1af3a725235448443f3cb6..94baee5406a9d0a60fad83fd5a92f5a0b7adddab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import argparse
 import itertools
index f3f0748023bc2078a53fd057b7c0e29559f26a43..c933bcdb80c173a0fd9cf2fdffb966e4392bd531 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import subprocess
 import optparse
index 46b392ea08aaf53577b27c0552776ecc86d72510..4e77654ea4bbe613f640cbd258ac19921e2b3717 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 '''This module implements a Finite State Machine (FSM). In addition to state
 this FSM also maintains a user defined "memory". So this FSM can be used as a
index 98e1c63ce4141ae6ad50f944952556fa7b8bda3c..7d1877bd08b2463b3d2be9ecbbf68d99389642a2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 ##===-- lui.py -----------------------------------------------*- Python -*-===##
 ##
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 8bb4e3595f805a8893d5c881bd1b1d05dcdc3144..18c1405f930807766fa718e5e8ec70cc936e57ef 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 ##===-- sandbox.py -------------------------------------------*- Python -*-===##
 ##
 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
index 87bbfbf32bda3ab7e1956c3d50927c362da3faed..a6dd73e0ad44e136f3c02124acc0817c5c03f57c 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index 1aa80ee83ac4ca852a9dbaa1a0a5abe514636d00..bf1ca576fe4c461f7efea581413185f1dba95af9 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index c3b4d23c002a15aee89144fbd69300fc4f0002cc..8c00172152ba3276e25ddb4ce7afad2d95b524df 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index 61c9a5b169fcd86221837e5ebd73d700206230dd..08450018c02e62c90d9c36d5558d2a38dc08622d 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index 87bbfbf32bda3ab7e1956c3d50927c362da3faed..a6dd73e0ad44e136f3c02124acc0817c5c03f57c 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index b0062ac0b74f30b53496a07af12809e0dbf99f64..1a37844c1167aabada17948bdd46ddb8296c7a1e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index d2ab4ce096f93991a329f3b5309b09b5d83d3d28..0484a9f0d4ff4834cda635d69e2b4cecb6179067 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index b6bc4ee6c909b15cf9c4ee5073114f592d56ee62..1082c655d721e9d63d297a43bf421f1ed4cde88f 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 import subprocess
index 36e81a5d569a746567776da4f1aa57cbd5fc8570..da8eeb385583a0578c81d05f1dea005652b0d73f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index f4ee3a7d44e63958dffc6ed7add97e5797a66f7c..0e185ff7219a6a481ed4e9af5e5ce146a2de4f91 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index 714fccc8df96703cedde3b007b03d5959f009edf..ef3cbf736a08c98a45db5e41de96d15a07667a96 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index 6a53e13f4c2b8b3b996fcd752bdac5003b16658c..f6d08b0aad3f4375af8eed07cfa7a292f26c825e 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index bc0bfd586f7a48d3621f34646a0561a97af56180..b2971423c6d9d5257b076b644e95b846b13582f4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import re
index 4ca3ca4f730e97e0dcdd7d043fa8750feec1de32..b037969ca803331ff37f855664aa9b25efe6bf5f 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # Given a previous good compile narrow down miscompiles.
 # Expects two directories named "before" and "after" each containing a set of
index 0b69692ca2a40a4ca1d23cfb999ba8f5072db00d..7e5eefa3fb2974425a8cff773db27d881e4a6b4f 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # encoding: utf-8
 
 import argparse
index f0a4455f5fb7cc9d96148758c640e4b27b81d3b3..9cfae85e6c39b9f336d814da642a734118efeb91 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 compare.py - versatile benchmark output compare tool
index 9030550b43bece88d41bac337e26004a109232d5..d131dc719414c45e10577570de5d3b41656a8fc3 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 strip_asm.py - Cleanup ASM output for the specified file
index 9df2cd9e1136bc9fedbf3c57f449854346d45d5e..adc7030738a7706d9e501f0fb316e2e8bdd894cf 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # The way you use this is you create a script that takes in as its first
 # argument a count. The script passes into LLVM the count via a command
index efdd2c937e1529656bee809f75053ef0228316a1..1a64eba381dc8aff1ddb9af8f3bb0d9f56a75716 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # This script is used to bisect skip and count arguments for --debug-counter.
 # It is similar to bisect, except it understands how to increase skip and decrease count
 #
index 4c366efbba497b0808fb678a285c24ab4db5d6fc..5df1cbed12d8ba229399bfc0df4f248e49ea7804 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Reduces GlobalISel failures.
 
index d17bae85cdd328d360b5c64a2e906d428f176f11..1b2c1f05e8ff0460720ec31ae0021fe7c4405e9c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # Given a -print-before-all -print-module-scope log from an opt invocation,
 # chunk it into a series of individual IR files, one for each pass invocation.
 # If the log ends with an obvious stack trace, try to split off a separate
index 1f720c34544a790d8c9df6201f1dd256b2e3ea16..b4bd7b47bc2fb8c5e5adb63dc81acd344c3b9d71 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import plistlib
index a5946ff24af5ad850ced4270ae7a731ab2ed4e3a..a32e3a4175aac251bdefe29dc093105aeb353b18 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """A ladder graph creation program.
 
 This is a python program that creates c source code that will generate
index 43f603963a2057a8f61bbf3cb0cfc395e71de876..ed7f3b9892b609a722eb5e151ed21ddfd9f7326d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """A tool for extracting a list of symbols to export
 
index a6f217b85176c5411951c72c0e902d606aa6cc52..df3a7a5bd3c3931509bee55fbe1cb2c8fe244b61 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # This script extracts the VPlan digraphs from the vectoriser debug messages
 # and saves them in individual dot files (one for each plan). Optionally, and
index c7694236be55f901262dce946a8e9f71238f8f02..71476d24273b92fe2d8be5a37174c2a81da66971 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Runs tablegen."""
 
 import subprocess
index a8f6c1b322beaaf88c69565d08082af5cf398929..d5fbf32c1a6decf7e88195874d9eb54ec77d54b3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Symlinks, or on Windows copies, an existing file to a second location.
 
index 6326f4cb6ae035d32a5639a1ea8655ebd828c62b..eeeeaa5fbd1a978580a72cb4444937d7a140b50a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Helps to keep BUILD.gn files in sync with the corresponding CMakeLists.txt.
 
index 4fb9031795e661df67cdad9fb634f2a15a426d73..a3f0ec24fc29d2ff4ea5803ff45f01854a0f0f0d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 r"""Emulates the bits of CMake's configure_file() function needed in LLVM.
 
 The CMake build uses configure_file() for several things.  This emulates that
index b77a33dc8af27ad074fec6bb6889d3772f27edea..2c8ebb3d49a1b036ac8e5d7f1fec4552e13e89ba 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Gets the current revision and writes it to VCSRevision.h."""
 
index 8ae506f73c524275c9c7b0ed38b7a862e54471f7..0aa8207380a31c4cc7709fefdbe22864c61651d5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Downloads a prebuilt gn binary to a place where gn.py can find it."""
 
 from __future__ import print_function
index 4708d4c3b60246eb3110f8de39407c90da026616..b2936f88bf3fa9a2a2959e80bec217544593b7fa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Calls `gn` with the right --dotfile= and --root= arguments for LLVM."""
 
 # GN normally expects a file called '.gn' at the root of the repository.
index e460ff7d083620680a812120ba7c622b9bd9396f..66633886d07d630451209e8fcbdbd5dd3f62f950 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """A tool for looking for indirect jumps and calls in x86 binaries.
 
index fe84bbfbdad44a2a0a59bfea52dc21964ad667b8..0b5519892e7defbf33d8f0049bf35d69166a6b17 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 # Source: http://code.activestate.com/recipes/475116/, with
 # modifications by Daniel Dunbar.
index 7bff6b6252b25ccb2f490a1c0a3803db96d4c9c5..ea2a0574802c8925f1f461f1615fdf66697a17b5 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 
index acf13a466fa71f7522857b3e93d5844fa4d9735e..9d59d600b067194b7b6c0a12b744b39ebc166d43 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 import time
index af6127670b8b532678be62dfc684b137bca2f04e..8b801cfb7962c2564441d3fbc68e9514dda369ad 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 import os
index 2f7a2503b97625bb166b02da59036599f4d28e16..8cd890c550d28096496f09aafc4174a1e67c1a94 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import argparse
 import platform
index 467505b7f293f5bb00f65831da6da9574116a851..71a49cc83fc8a9caaff1c67468700dd064a5c47c 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index 9463251d823ab21766a3a816546b85c7000c4254..f5e78b157a5d4146722ed759afb6de394c2c2657 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 
index 357089d4899b5223370081e552e158c1aa957a31..56919479c79ac727db4c0e9a5d0d80c98f6821ad 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 
index 88b19455ac3931187acc6f6c9f10771302dce53a..56858c413ff7e184a2cc04e83b00091523f1d12a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Summarize the information in the given coverage files.
 
index 6d9674ebe5dcbc6c283f58f13740de222406faf4..40f8786a5a179686f6e53a60c82859fa8bddb4c4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index e7e13b08381241b92ed3a8226418160571a0fff1..7543cb8060e0649d6aba82e3ed40e464bb4abc0b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 from __future__ import print_function
 
 import re, string, sys, os, time
index 7bd1523b58faa31c63fcfaaa6b1fbd1d51ae59e6..3eae2fffeadc1ad61a171fa045fc3c6754b8a0bc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 import re, string, sys, os, time, math
index 2d86cc0a28fa399f994e0436249b31c926d34087..54e7040fc6716d28971732dc4c0653e3590f9b5c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """A shuffle vector fuzz tester.
 
index 6b2f94a693533db529c20c42ab71c553323b5b44..48b9724e4c273e64570fbda1682938fbec5db2ed 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """A shuffle-select vector fuzz tester.
 
index 70bfdedfc6d32ad1572bae3c80a96e64955e1248..450cd0e920f86c5cba8df3dd65f8d4cacd146915 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Script to sort the top-most block of #include lines.
 
index ad8265ba7bc1b65846ce62c24048eeade70f45a6..7a8c5fdc9004eb55c4c5f7d68ccfeb434549418d 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Unicode case folding database conversion utility
 
index 666bd63a2797be884592c6ae2f0b98c37639bc86..aa9d7dd6a57b54b392a5aa4bcaf72a5819c5613c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 wciia - Whose Code Is It Anyway