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

Gbp-Pq: Name python3-shebang.patch

170 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/clang-format-diff.py
clang/tools/clang-format/git-clang-format
clang/tools/scan-build-py/bin/analyze-build
clang/tools/scan-build-py/bin/analyze-c++
clang/tools/scan-build-py/bin/analyze-cc
clang/tools/scan-build-py/bin/intercept-build
clang/tools/scan-build-py/bin/intercept-c++
clang/tools/scan-build-py/bin/intercept-cc
clang/tools/scan-build-py/bin/scan-build
clang/tools/scan-view/bin/scan-view
clang/tools/scan-view/share/Reporter.py
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/gen_link_script.py
libcxx/utils/generate_feature_test_macro_components.py
libcxx/utils/google-benchmark/mingw.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
libcxx/utils/sym_extract.py
libcxx/utils/sym_match.py
lld/utils/benchmark.py
lldb/examples/python/file_extract.py
lldb/lit/Quit/expect_exit_code.py
lldb/lit/helper/build.py
lldb/lldb.xcodeproj/project.pbxproj
lldb/packages/Python/lldbsuite/test/attic/tester.py
lldb/packages/Python/lldbsuite/test/bench.py
lldb/packages/Python/lldbsuite/test/issue_verification/disable.py
lldb/packages/Python/lldbsuite/test/issue_verification/enable.py
lldb/packages/Python/lldbsuite/test/redo.py
lldb/packages/Python/lldbsuite/test/test_runner/test/inferior.py
lldb/packages/Python/lldbsuite/test/test_runner/test/test_process_control.py
lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py
lldb/packages/Python/lldbsuite/test_event/test/src/TestCatchInvalidDecorator.py
lldb/scripts/Python/finish-swig-Python-LLDB.sh
lldb/scripts/Xcode/build-llvm.py
lldb/scripts/Xcode/package-clang-resource-headers.py
lldb/scripts/analyze-project-deps.py
lldb/scripts/buildbot.py
lldb/scripts/prepare_bindings.py
lldb/scripts/swig_bot.py
lldb/scripts/swig_bot_lib/client.py
lldb/scripts/swig_bot_lib/local.py
lldb/scripts/swig_bot_lib/remote.py
lldb/scripts/swig_bot_lib/server.py
lldb/scripts/verify_api.py
lldb/test/dotest.py
lldb/third_party/Python/module/pexpect-4.6/pexpect/FSM.py
lldb/utils/git-svn/convert.py
lldb/utils/lldb-dotest/lldb-dotest.in
lldb/utils/lui/lui.py
lldb/utils/lui/sandbox.py
lldb/utils/misc/grep-svn-log.py
lldb/utils/sync-source/syncsource.py
lldb/utils/test/disasm.py
lldb/utils/test/lldb-disasm.py
lldb/utils/test/llvm-mc-shell.py
lldb/utils/test/ras.py
lldb/utils/test/run-dis.py
lldb/utils/test/run-until-faulted.py
llgo/third_party/gofrontend/libffi/generate-darwin-source-and-headers.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/runtimes/llvm-strip-link.in
llvm/test/BugPoint/compile-custom.ll.py
llvm/test/Other/opt-bisect-helper.py
llvm/test/TableGen/JSON-check.py
llvm/test/tools/llvm-readobj/Inputs/relocs.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/Reviewing/find_interesting_reviews.py
llvm/utils/Target/ARM/analyze-match-table.py
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/git-svn/git-llvm
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.py
llvm/utils/lit/lit/ProgressBar.py
llvm/utils/lit/lit/main.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-build/llvm-build
llvm/utils/llvm-gisel-cov.py
llvm/utils/llvm-lit/llvm-lit.in
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/update_analyze_test_checks.py
llvm/utils/update_llc_test_checks.py
llvm/utils/update_mca_test_checks.py
llvm/utils/update_mir_test_checks.py
llvm/utils/update_test_checks.py
llvm/utils/wciia.py

index 5e9dde7234358dc45e0a6e301d89b2085a6f0923..5962004b728ab85d972769fb2f7ebcaec1507af4 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 6a06e6dea5d96a4be2c3409c43942f93e12513c7..0c608a6ea5e45301e0278713b685e8d7e1137bbe 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- add_new_check.py - clang-tidy check generator ----------*- python -*--===#
 #
index d5f24073496c530d6d5cb8a7e5bbde3b22d86c43..da98ba2501e2a9ffedf9de099454deda91f7089a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- rename_check.py - clang-tidy check renamer -------------*- python -*--===#
 #
index 8b6ad90455769c8aadc6e979ff0ca658dc91df2d..f28207e123b036f6d1dd68d98f376c733f71b207 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- clang-tidy-diff.py - ClangTidy Diff Checker ------------*- python -*--===#
 #
index a96c3b8323185e1a49e4a3896fc0e1e5c5f24f40..f46d4354562e60ed5fcdff80ff7d2e124ee137ed 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 aa6304baef813af13ff4c74c677693eccfd23097..217454cb1d00c8ba52a6f7898672576ec8ec29b9 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 c96c1ca27acb67d2e148488924ec698011eaedb9..26cf41561e6933a2a2c8e4aa7bc5a711d0be7776 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 5feb793a4d705178790a7f2d079a235a27c1b5ca..e18a2ffb3972e61c60ed7d8f49db55469500acc1 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 975039ead278924bd923bdffad17501feabbf42b..9a6ee94cd845e933f617b5210cac8478ed99dc33 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from collections import OrderedDict
 from sets import Set
index e231f5bfe1d4a6409836ed0051e89998cfd873db..a801c5f990867ec6682be4b1ccb54a4760e9505c 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===#
 #
index ef7f22d0f873e005d9898c59f504e9e30e7c26bc..4ea4521f64bc809e8d6e54d3ab827d5794ef28c3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
 #
index 6c285874a2083b063ff1a3cd71f202c5caede05e..5b270d54e10a5c968d835a4d90607a074fb315f8 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 564e2abf554a39974c63d1ab56f5f43d339b5f48..b2b60a4406c52fa54dc3e8563eec2439a28f417a 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 564e2abf554a39974c63d1ab56f5f43d339b5f48..b2b60a4406c52fa54dc3e8563eec2439a28f417a 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 23f5104782ca7d9367f8d8553ce79584c20a516e..fe45c5457d1788071ba63fb8251d555f264a4a9d 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 4230c8035d22b651c823ecc41a9df0eaafa4c4ec..0cba3a3cd13e3e482b096b3036afc0bfd8b04b0d 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 4230c8035d22b651c823ecc41a9df0eaafa4c4ec..0cba3a3cd13e3e482b096b3036afc0bfd8b04b0d 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 156da064a2b476ac6154533b342c881184a11ef8..4fa08175eb18126a99c20054e477b56ba762dee3 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 4537bcfcd01d14231c7dfd2fcbd713e53b13fc47..37c07a9b8711b8c70ce7e15fa11a9e07702f94aa 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index b1ff16142e279cb480d1f2f73f8b211ca7970e1a..d6300e7876165e30d0588987b087ce67bc1d0ae5 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 """Methods for reporting bugs."""
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 3fab6ef520c42e05464947103268bd72aaf04538..9baa7a483fc5355be0c534337f45f8186c0d86dd 100755 (executable)
@@ -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 52089f4e0660e5bbe271e9ea264b54b3193bf844..d087a90ba73572a2e28402231944c8c47d22d687 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Static Analyzer qualification infrastructure: adding a new project to
index 691ded80a1ef145086518bd64c30087b11d9cdcd..b17b3db16381b06fd4e6f1447528fcebd6a9c2af 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Static Analyzer qualification infrastructure.
index ea3c08cc210c423192081dc2b06bcb7b94ada4c8..08e3f82ffd1e0bafe2490e0437e8dceb138de741 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Update reference results for static analyzer.
index 36e519adbf71c482c7174ee101a94b3a07bda8ed..d1934f19d03936318b10620ac0824e5ab57306ca 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Script to Summarize statistics in the scan-build output.
index 5ce56d61c0dcff1b44b267686c2a216b1a7e037e..808f21c983d249575ee3a4602469776c80b1c2e6 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 be16211c4da61a0b47d1093d186e47d15ab8b726..e56f3697c90f5f88f4b9092d777d69bcc66cd066 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 58baab2f7746c19a524d843843b1e813bbc1bc0a..00296f11a169756b86243fd609e05dd7633ccfaa 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 61ca3272aca561c04b27d982fb94ba8791f6e81b..19a9807b351445d61ed288fb9b3480f05edea80c 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 28995bc0602af29286408c44ce9f10edffe80d1d..d2215201319931846f4590029b04b6d101b21566 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 d45c47f7ed0cd3e3bb917ccbb9a3cb971186a7a0..94826614560a655690e4d25a1fc0c6088ecce79b 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 81b89c21443813149df6c278038d8b40b23cdf8c..dd8d3aba06c7df7e0859fe63631231b9a0774d00 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # litlint
 #
index 35606396b78e6f716e5484558d4f2d7c87b6c514..2a2876d461f0a703ebe23143622946f270679c32 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 238c5747cc8f1c7d108efdae723e183c36fefc57..4343c56a310e1a039af6db75d0b353181d7fad0c 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 0384d32558087e3f7120b53126ecd22f81b39008..16c0f1bfea0f61dc0609bc8019946b99693d823a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import tempfile
index 706ad559db9c753fe02d24077600875684eb7682..4eb75ab864298a8ef8d212d5821977c1620bf727 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 # encoding: utf-8
 
 import argparse
index 539ace6fb163b730eb0eccf1922a5d8e6c50a3ba..b1c0dedefa4ad152353d609a7801e635dabda645 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 5c04bc915a4ad052a93d085ebd384817778b45f6..653dbbf5030fc18fb0e1f336ed0a22bbe05aca00 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 987c207c1e41257e3f319ec445bffd428d0f29bc..f1397b2529e234baa9700193c77ea632dd7accfe 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 1fd39ca5f83821fb49737c73861f43b37a247df1..b91ebfcf4423d2329f1d80dca9a448ae0f044773 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 decbba0b2997ca3f46222fcc0a120d5d14ae4a62..c1f2b98f1434836e30ee365792de867490e69ecc 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 
 import string
 import struct
index 32b2e29d53d791630f7d4e84b0a24765b18a689c..b85fa8c9e0761e8953621c4e0e1b421127e16562 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import subprocess
 import sys
index d2cb52f00e5535c7da64a323b1522fd3f2641960..c78565b0b5c7892a17296ff81609f043dc05f21a 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 
 from __future__ import print_function
 
index c02abef66a75397de9c3dee81a12ed7fbd8127b7..e3f2f2f06fe4cb585541be130f330946fce694b7 100644 (file)
                        );
                        runOnlyForDeploymentPostprocessing = 0;
                        shellPath = /bin/sh;
-                       shellScript = "/usr/bin/env python -u $SRCROOT/scripts/Xcode/build-llvm.py\n";
+                       shellScript = "/usr/bin/env python3 -u $SRCROOT/scripts/Xcode/build-llvm.py\n";
                };
                26DC6A5813380D4300FF7998 /* Prepare Swig Bindings */ = {
                        isa = PBXShellScriptBuildPhase;
index 2e783512369d48f055f2956c8c78e17823e8fa4f..6140e1e555a52b6f15d0ae9c31d4127a3a54c974 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf8 -*-
 
 from __future__ import print_function
index 41d44bad987ef54f73850ebb48a6e6a596117d68..4cda5694a54958aa3f9b438f37efdc4b21f6eb51 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 6d1f93e8b15dd83a9fcce2061b27e8918bf695f7..c775474a95dc26e240cdcb5b6f1e54518641d959 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Renames *.py files to *.py.park."""
 import os
 import sys
index eb19276de1f7a8c260a3ceb42e702cd1364ca5b9..2b4eaefc3d494c498ce45cb4632fe836c75ceedd 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Renames *.py.park files to *.py."""
 import os
 import sys
index 03052c3a08caf6941d5777eff68b434a31653f9c..642a5c2af87db2832f19e2711fda6d67494d1128 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 A simple utility to redo the failed/errored tests.
index 4207bac300fdb26d9d4062c2ccde766572528770..8d9639c4abd15b1854fb4f58bae46aa2b0959381 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Inferior program used by process control tests."""
 
 from __future__ import print_function
index d1f7da67dc1bd3d30097e0378e903baf1116e4a4..5df541c96d9cfb4d8a30a1724505a93c81a6b3f8 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 74ee4a6c44c3dc0a8d777340bded8065e0aa3248..f7a3d5b4a1299ba2f1aa1f27d8c2c1bc03278531 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import binascii
 import json
index 5b199defc5df34fb1b8e11d42b89ad26d14ef36c..b24ce74973f0d03468dfacecfb6868fc9194ad96 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Tests that the event system reports issues during decorator
 handling as errors.
index 1cd17744a70880ff7267c3e90b1f14e052e86210..ca78f8a8f4dfc91d67479bec3315c19324bb8255 100755 (executable)
@@ -55,7 +55,7 @@ else
 fi
 
 OS_NAME=`uname -s`
-PYTHON=${PYTHON_EXECUTABLE:-/usr/bin/env python}
+PYTHON=${PYTHON_EXECUTABLE:-/usr/bin/env python3}
 PYTHON_VERSION=`${PYTHON} -c 'import sys; print("{}.{}".format(sys.version_info.major, sys.version_info.minor))'`
 
 if [ $Debug -eq 1 ]
index a678247e49bc26450439ec0252b0028b93a8be24..ac39c494c961611088c42cf6b528be3d321882ab 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import errno
 import hashlib
index 7e34af9ff338caeabe54b6d7bf555127c19f397c..3b4797f01cd34e28bbaf9af3b4ef69f848c2484f 100644 (file)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 
 # package-clang-resource-headers.py
 #
index c6e3263a2f26a5242e2f3b187612c5ee7eb5b1d0..874223bf8a0a366f4dcf4670302579f665be2c31 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 
 import argparse
 import itertools
index 06ee556be39c3b900e040551987752501758117b..0d7679464db36025ff6ef435282f4ab800d594f8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import argparse
 import os
index 447fc5dc8f6e4d6e84891ac98caacb8b8d7423e6..d3afe5d9a91b70532bbe7e165b75a1b2cd927657 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 888fc10116b8960be03776c639295c19b0a875ca..c261454a392d721a6d65400df40617924800ab58 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 SWIG generation top-level script.  Supports both local and remote generation
index d9f0fb47e016613923fca2e1d3077fc6e1e1f8fa..5f8d6add895d7ece0810926ecc0166cf8f0c96c7 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 SWIG generation client.  Supports both local and remote generation of SWIG
index ea073af825745a18b87bea54722b4856f5a7aa8f..0e732969ce7926234230b72a4a63d85c67448f81 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Shared functionality used by `client` and `server` when generating or preparing
index 712a5e2a51e73ba82fe26cadb4444a7f3f4fa7a9..8970c72d96edc4383ad7b88ab7f92922468a424b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Shared functionality used by `client` and `server` when dealing with
index 57fb8d9db4e9de3a9f44d20e846b7de563cfdfe1..58a9927fde66a1957c0e54d841fd5b8669a79e40 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 SWIG generation server.  Listens for connections from swig generation clients
index d422cded8c2942b398d52dee0e20a7fc98bbada2..c9d8943b163e7b8e91b717307adf46901d1327e8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import subprocess
 import optparse
index 1f9d52354f52bce8878cf8cf2e60643813c97ead..30e953e8b684caa2b2684b24be7a9c2567b10487 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 if __name__ == "__main__":
     import use_lldb_suite
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 b6e54ed80b7b6e76a38d20cb2ae0f59d74696eda..fca5d6f6fc923bec8f60ea3e7b861b4a94efe397 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Convert the raw message sources from git patch emails to git-am friendly files.
index 18a73ae0b1eb3d60eaa167da05098c4028aefe48..0112a9f092ff75c67351c75473c04c0087bf16d9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import subprocess
 import sys
 
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 a14904792009b17ee5c83cc11723491c288c01a8..ecc0aaadc7a72ec9596d812b9d38d0a31d6978f4 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Greps and returns the first svn log entry containing a line matching the regular
index 6cf2612bd7e1fc89281f2c53939e0b9450679b9b..7f34e502cc6b6d4674d827d758ad5d7efdf3448d 100644 (file)
@@ -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 7d95d893747693bc9f683951dbcd0c3b497b5188..26025115a1f4b8ddc482571c4ea2be3b39e757d2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Run gdb to disassemble a function, feed the bytes to 'llvm-mc -disassemble' command,
index 339e8e7cabae4fdc068feba3053f6866bab9252b..c684a75325bff7eb952646fd04502ba1f139163a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Run lldb to disassemble all the available functions for an executable image.
index 6adaf5dd3c5f6d3801265b8f796e694aac08f83e..cfc2e63c6ccabfb6d67193f3d4ae93c00707e994 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Run llvm-mc interactively.
index 1b7caecdb0fea790e406d5981873b90abd7977a9..ccd9504c31d9b613a4eb5f4d30eee02fb008a63e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Run the test suite and send the result as an email message.
index 5df65e85ba1bb7a21fbc1fa4fd472072acbf2f9d..22c7fadc2c7d9d2ce132a56085e4a9e503c6322a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Run lldb disassembler on all the binaries specified by a combination of root dir
index 0ce32771f75a171c67a882d0bb12c6244a527217..f0b209b24cb2362af49986ee4c85a3ccb4cd67bb 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 Run a program via lldb until it fails.
index 306136fe44694b2bc224dcf2aedd6891a923b800..2b64c9ca226bf2cd8d46f3b71d9814ead4d314b7 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import subprocess
 import os
 import errno
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 a7b8c567faf62a9297d570481d5ede53a0574c06..9e6a313ee789217ca1ec83291aa81350c96c1073 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 import os
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 8e621cef5cd98ba37cb51a096f53fe915d3d22a0..01f68fbd6b92ecceec77f29167213d62e8153c71 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
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 4c105886cfdf274b38f5ed3ce6539516971585e9..c4619a6cb9156d5edd822fdaac74c6b6b772a245 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index f6fd772689a9c5479392a2c517ca0e56249a95d9..8c8f4c8c90ef0562675a9e0c03dd82943b9f33c6 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 7bfbec8cfde9e5459274fc25dc3140438ef921e5..a0c06899c554503f4aad9a7e1839790c1f11a774 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index d4e158d9e1d80347b47db044bcb7dbe017c88cd6..196c0aa0591b26b36b566e6fbe8fe7c06d0ed42b 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_function
 
index 69a86f6482d13af2f19ad6c503ab72d3f1d532fc..8250c8c3f5e493a9bf353972228a15aaf48e9da1 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 706ad559db9c753fe02d24077600875684eb7682..4eb75ab864298a8ef8d212d5821977c1620bf727 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 d1b12575e9c321582228eda3a9fe3fbefcc62587..94c229f2d7146c30b99c8acefefd38210bc2832b 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import sys
index f4f8ddcec797ad2ad5f109a8020c109bbaad4279..f9e4c2bab42abe8135d2e4726badb2717504356d 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 ce17c68c742a2555449633f9ac62a3787c519583..0e14b9b2c045fb6a58aaf25ba2cdd1c39473a810 100644 (file)
@@ -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 59b13f306505a8eca4859acdef2f85a5f33fcc08..2b28ada21019fb4c86b0658509ce66469e5bca37 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import os
 import plistlib
index a5946ff24af5ad850ced4270ae7a731ab2ed4e3a..a32e3a4175aac251bdefe29dc093105aeb353b18 100644 (file)
@@ -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 93ad2e9c375871dc614cc623977907f58d89a1f1..7c7c6a93b57a3a2bf82f972b51dbfba3f9129440 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 b4e34fc76ba5e7967ef9af27051974bcf79e6355..c2a31f728f54929c10c8866db4dd2c2c6896447b 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 55150b0115d4202b3c500b33f9ed6241e50e5904..a4c3a734220b0b1a60bb906920e8a63f48ace893 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 #
 # ======- git-llvm - LLVM Git Help Integration ---------*- python -*--========#
 #
index c7694236be55f901262dce946a8e9f71238f8f02..71476d24273b92fe2d8be5a37174c2a81da66971 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """Runs tablegen."""
 
 import subprocess
index a8f6c1b322beaaf88c69565d08082af5cf398929..d5fbf32c1a6decf7e88195874d9eb54ec77d54b3 100644 (file)
@@ -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 fd1e695468a8f7d9b841aa9bfed633775b77846b..bb07752d870289e9f82d44a14265677ae73d523b 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 d57435285d1a00f60d529d9d13b6e568b1f4a747..e6a9e7edfcf4d011cc292f1cc6aeb54702a2803a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """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 5bdca23e76485c156cd3cbba78464fe98ce9cdd5..17a864e6542c4c73e6cbc25e580ef288ab59ac63 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 c39649df78a42bf7ca5160a4e00e8a8a90723862..9f0973463c4c8b633f92e0070e16008ccc5cb19e 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 a6408ec065a359e62838e8ad7078f841ddb57ab8..08e3a19650552d4e020cffc92828be1e445d0aeb 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 af070c69b5bd753f45dc26f54dc8b25ad59110eb..51f3ad559e4dce200a6ebdb302ce0b122349f0c9 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 import sys
 
 from lit.main import main
index d4e8f9ff6d7cb47f9dcdb17e4e08802553c84de7..036d6540d9ba620df5559a49f41db6b35d2cba78 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 49aaf638a2213ca95339a22cd5522fc9c9178f37..4e4967de8d8b3309493be2a4e4931f5511192493 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 lit - LLVM Integrated Tester.
index dd49f025b1f2e2e85de60b83251ce65e8e0ecff0..61230a1a97e042084c1af5395c13e52003d99b9e 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 
index f3a90ff4cd675879a0d06d86d89dcce427ba451b..112039e03fcb2394d6bd25fd62a83ca0cf2c0af7 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import sys
 import time
index ac9a80e6d5063752d67e6880a900e3463248add5..ed7e6776e73c49e669dba628eba0f5f0e4b5ca72 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 from __future__ import print_statement
 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 7377e3d3fed7f53893fcf2b74ebbda17e025310c..ac1463053bab93999399f6f1a41417fd03318ddc 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 import llvmbuild
 
index 820fceab0d02a1c0483cb548c7bf8ded87f33c13..744275e745a6ac067554fc5ecde81e21e8b37f63 100644 (file)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 """
 Summarize the information in the given coverage files.
 
index 8700d15677d9b5001d59ca85e840089cbcea9732..f49741973c49bafb48ac4d7259f2ba1c009e0c4e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 
 import os
index 5c4af242d0de56fab3f755b955b47adcada45170..26bb4ec70d33f66cab632e5959503c24a84c42b5 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 100644 (file)
@@ -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 df09108937cf1da254433b18f272d54773b3f5da..2a1d314f7b0c48152f5770eb14ebdfe510b5479a 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """A script to generate FileCheck statements for 'opt' analysis tests.
 
index 0936a449c246ced6da383e69207e145d02617117..78a83101cba22c8ee70c4c3d3308e00be98f2aa8 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """A test case update script.
 
index 87ac19b39aea181f25a68977911bd6169192fcba..24d7269485762d9a682283b1c53f678c0a28bf73 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """A test case update script.
 
index b42a38bd55a654176d0956a8fe884fb17d313261..5ea780da90ab50579b79b41e024776875cc86971 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """Updates FileCheck checks in MIR tests.
 
index 92ce0535a109f33de660e4a35a0affe18ff6c473..6fad59ee151bbc00df80d2e19f72d0dcd301b8b6 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """A script to generate FileCheck statements for 'opt' regression tests.
 
index 4269db2de46674535dec7386a20d5702f4a1b256..30c3846b83fe6c1766ab0e2d6c9d00f0b7e737a3 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
 
 """
 wciia - Whose Code Is It Anyway