From ec87fd233ee6d28dd8f714d9196eff756dc53bff Mon Sep 17 00:00:00 2001 From: LLVM Packaging Team Date: Sat, 15 Aug 2020 21:34:33 +0100 Subject: [PATCH] python3-shebang Gbp-Pq: Name python3-shebang.patch --- clang-tools-extra/clang-tidy/add_new_check.py | 2 +- clang-tools-extra/clang-tidy/rename_check.py | 2 +- clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py | 2 +- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py | 2 +- .../find-all-symbols/tool/run-find-all-symbols.py | 2 +- clang-tools-extra/test/clang-tidy/check_clang_tidy.py | 2 +- clang/bindings/python/examples/cindex/cindex-dump.py | 2 +- clang/bindings/python/examples/cindex/cindex-includes.py | 2 +- clang/docs/tools/dump_ast_matchers.py | 2 +- clang/docs/tools/dump_format_style.py | 2 +- clang/tools/clang-format/clang-format-diff.py | 2 +- clang/tools/clang-format/git-clang-format | 2 +- clang/tools/scan-build-py/bin/analyze-build | 2 +- clang/tools/scan-build-py/bin/analyze-c++ | 2 +- clang/tools/scan-build-py/bin/analyze-cc | 2 +- clang/tools/scan-build-py/bin/intercept-build | 2 +- clang/tools/scan-build-py/bin/intercept-c++ | 2 +- clang/tools/scan-build-py/bin/intercept-cc | 2 +- clang/tools/scan-build-py/bin/scan-build | 2 +- clang/tools/scan-view/bin/scan-view | 2 +- clang/tools/scan-view/share/Reporter.py | 2 +- clang/tools/scan-view/share/startfile.py | 2 +- clang/utils/ABITest/ABITestGen.py | 2 +- clang/utils/CIndex/completion_logger_server.py | 2 +- clang/utils/CaptureCmd | 2 +- clang/utils/CmpDriver | 2 +- clang/utils/FindSpecRefs | 2 +- clang/utils/FuzzTest | 2 +- clang/utils/TestUtils/deep-stack.py | 2 +- clang/utils/analyzer/CmpRuns.py | 2 +- clang/utils/analyzer/SATestAdd.py | 2 +- clang/utils/analyzer/SATestBuild.py | 2 +- clang/utils/analyzer/SATestUpdateDiffs.py | 2 +- clang/utils/analyzer/SumTimerInfo.py | 2 +- clang/utils/check_cfc/check_cfc.py | 2 +- clang/utils/check_cfc/obj_diff.py | 2 +- clang/utils/check_cfc/test_check_cfc.py | 2 +- clang/utils/hmaptool/hmaptool | 2 +- clang/utils/modfuzz.py | 2 +- clang/utils/token-delta.py | 2 +- clang/www/builtins.py | 2 +- clang/www/make_cxx_dr_status | 2 +- compiler-rt/lib/asan/scripts/asan_symbolize.py | 2 +- compiler-rt/lib/dfsan/scripts/build-libc-list.py | 2 +- compiler-rt/lib/fuzzer/scripts/collect_data_flow.py | 2 +- compiler-rt/lib/fuzzer/scripts/merge_data_flow.py | 2 +- compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py | 2 +- compiler-rt/lib/sanitizer_common/scripts/cpplint.py | 2 +- .../lib/sanitizer_common/scripts/gen_dynamic_list.py | 2 +- compiler-rt/lib/sanitizer_common/scripts/litlint.py | 2 +- compiler-rt/lib/sanitizer_common/scripts/sancov.py | 2 +- examples/Kaleidoscope/MCJIT/cached/genk-timing.py | 2 +- examples/Kaleidoscope/MCJIT/cached/split-lib.py | 2 +- examples/Kaleidoscope/MCJIT/complete/genk-timing.py | 2 +- examples/Kaleidoscope/MCJIT/complete/split-lib.py | 2 +- examples/Kaleidoscope/MCJIT/lazy/genk-timing.py | 2 +- .../generate_feature_test_macro_components.py | 2 +- libcxx/utils/cat_files.py | 2 +- libcxx/utils/gen_link_script.py | 2 +- libcxx/utils/google-benchmark/mingw.py | 2 +- libcxx/utils/google-benchmark/tools/compare.py | 2 +- libcxx/utils/google-benchmark/tools/strip_asm.py | 2 +- libcxx/utils/merge_archives.py | 2 +- libcxx/utils/sym_diff.py | 2 +- libcxx/utils/sym_extract.py | 2 +- libcxx/utils/sym_match.py | 2 +- lld/utils/benchmark.py | 2 +- lldb/examples/python/file_extract.py | 2 +- lldb/lit/helper/build.py | 2 +- lldb/lldb.xcodeproj/project.pbxproj | 2 +- lldb/packages/Python/lldbsuite/test/attic/tester.py | 2 +- lldb/packages/Python/lldbsuite/test/bench.py | 2 +- .../Python/lldbsuite/test/issue_verification/disable.py | 2 +- .../Python/lldbsuite/test/issue_verification/enable.py | 2 +- lldb/packages/Python/lldbsuite/test/redo.py | 2 +- .../Python/lldbsuite/test/test_runner/test/inferior.py | 2 +- .../lldbsuite/test/test_runner/test/test_process_control.py | 2 +- .../Python/lldbsuite/test/tools/lldb-vscode/vscode.py | 2 +- .../test_event/test/src/TestCatchInvalidDecorator.py | 2 +- lldb/scripts/Python/finish-swig-Python-LLDB.sh | 2 +- lldb/scripts/Xcode/build-llvm.py | 2 +- lldb/scripts/Xcode/package-clang-headers.py | 2 +- lldb/scripts/analyze-project-deps.py | 2 +- lldb/scripts/buildbot.py | 2 +- lldb/scripts/prepare_bindings.py | 2 +- lldb/scripts/shush | 2 +- lldb/scripts/swig_bot.py | 2 +- lldb/scripts/swig_bot_lib/client.py | 2 +- lldb/scripts/swig_bot_lib/local.py | 2 +- lldb/scripts/swig_bot_lib/remote.py | 2 +- lldb/scripts/swig_bot_lib/server.py | 2 +- lldb/scripts/verify_api.py | 2 +- lldb/test/dotest.py | 2 +- lldb/third_party/Python/module/pexpect-2.4/FSM.py | 2 +- .../third_party/Python/module/pexpect-2.4/examples/astat.py | 2 +- .../Python/module/pexpect-2.4/examples/bd_client.py | 2 +- .../Python/module/pexpect-2.4/examples/bd_serv.py | 2 +- .../Python/module/pexpect-2.4/examples/cgishell.cgi | 2 +- .../third_party/Python/module/pexpect-2.4/examples/chess.py | 2 +- .../Python/module/pexpect-2.4/examples/chess2.py | 2 +- .../Python/module/pexpect-2.4/examples/chess3.py | 2 +- lldb/third_party/Python/module/pexpect-2.4/examples/df.py | 2 +- .../Python/module/pexpect-2.4/examples/fix_cvs_files.py | 2 +- lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py | 2 +- lldb/third_party/Python/module/pexpect-2.4/examples/hive.py | 2 +- .../Python/module/pexpect-2.4/examples/monitor.py | 2 +- .../Python/module/pexpect-2.4/examples/passmass.py | 2 +- .../Python/module/pexpect-2.4/examples/python.py | 6 +++--- .../third_party/Python/module/pexpect-2.4/examples/rippy.py | 2 +- .../Python/module/pexpect-2.4/examples/script.py | 2 +- .../Python/module/pexpect-2.4/examples/ssh_tunnel.py | 2 +- .../third_party/Python/module/pexpect-2.4/examples/sshls.py | 2 +- .../third_party/Python/module/pexpect-2.4/examples/topip.py | 2 +- .../Python/module/pexpect-2.4/examples/uptime.py | 2 +- lldb/utils/git-svn/convert.py | 2 +- lldb/utils/lldb-dotest/lldb-dotest.in | 2 +- lldb/utils/lui/lui.py | 2 +- lldb/utils/lui/sandbox.py | 2 +- lldb/utils/misc/grep-svn-log.py | 2 +- lldb/utils/sync-source/syncsource.py | 2 +- lldb/utils/test/disasm.py | 2 +- lldb/utils/test/lldb-disasm.py | 2 +- lldb/utils/test/llvm-mc-shell.py | 2 +- lldb/utils/test/ras.py | 2 +- lldb/utils/test/run-dis.py | 2 +- lldb/utils/test/run-until-faulted.py | 2 +- test/BugPoint/compile-custom.ll.py | 2 +- test/Other/opt-bisect-helper.py | 2 +- test/TableGen/JSON-check.py | 2 +- test/tools/llvm-readobj/Inputs/relocs.py | 2 +- tools/opt-viewer/opt-diff.py | 2 +- tools/opt-viewer/opt-stats.py | 2 +- tools/opt-viewer/opt-viewer.py | 2 +- tools/opt-viewer/optrecord.py | 2 +- utils/Misc/zkill | 2 +- utils/Reviewing/find_interesting_reviews.py | 2 +- utils/Target/ARM/analyze-match-table.py | 2 +- utils/abtest.py | 2 +- utils/benchmark/mingw.py | 2 +- utils/benchmark/tools/compare.py | 2 +- utils/benchmark/tools/strip_asm.py | 2 +- utils/bisect | 2 +- utils/bisect-skip-count | 2 +- utils/bugpoint_gisel_reducer.py | 2 +- utils/clang-parse-diagnostics-file | 2 +- utils/create_ladder_graph.py | 2 +- utils/extract_symbols.py | 2 +- utils/extract_vplan.py | 2 +- utils/git-svn/git-llvm | 2 +- utils/gn/build/run_tablegen.py | 2 +- utils/gn/build/symlink_or_copy.py | 2 +- utils/gn/build/sync_source_lists_from_cmake.py | 2 +- utils/gn/build/write_cmake_config.py | 2 +- utils/gn/build/write_vcsrevision.py | 2 +- utils/gn/gn.py | 2 +- utils/indirect_calls.py | 2 +- utils/lit/lit.py | 2 +- utils/lit/lit/ProgressBar.py | 2 +- utils/lit/lit/main.py | 2 +- .../tests/Inputs/googletest-format/DummySubDir/OneTest.py | 2 +- .../tests/Inputs/googletest-timeout/DummySubDir/OneTest.py | 2 +- .../googletest-upstream-format/DummySubDir/OneTest.py | 2 +- utils/lit/tests/Inputs/shtest-env/print_environment.py | 2 +- .../shtest-format/external_shell/write-bad-encoding.py | 2 +- utils/lit/tests/Inputs/shtest-shell/check_args.py | 2 +- utils/lit/tests/Inputs/shtest-shell/check_path.py | 2 +- utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py | 2 +- .../tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py | 2 +- utils/llvm-build/llvm-build | 2 +- utils/llvm-gisel-cov.py | 2 +- utils/llvm-lit/llvm-lit.in | 2 +- utils/prepare-code-coverage-artifact.py | 2 +- utils/release/findRegressions-nightly.py | 2 +- utils/release/findRegressions-simple.py | 2 +- utils/shuffle_fuzz.py | 2 +- utils/shuffle_select_fuzz_tester.py | 2 +- utils/sort_includes.py | 2 +- utils/unicode-case-fold.py | 2 +- utils/update_analyze_test_checks.py | 2 +- utils/update_llc_test_checks.py | 2 +- utils/update_mca_test_checks.py | 2 +- utils/update_mir_test_checks.py | 2 +- utils/update_test_checks.py | 2 +- utils/wciia.py | 2 +- 184 files changed, 186 insertions(+), 186 deletions(-) diff --git a/clang-tools-extra/clang-tidy/add_new_check.py b/clang-tools-extra/clang-tidy/add_new_check.py index f4c518d08..0e17e79ae 100755 --- a/clang-tools-extra/clang-tidy/add_new_check.py +++ b/clang-tools-extra/clang-tidy/add_new_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- add_new_check.py - clang-tidy check generator ----------*- python -*--===# # diff --git a/clang-tools-extra/clang-tidy/rename_check.py b/clang-tools-extra/clang-tidy/rename_check.py index 53a5ff921..3d1c8236d 100755 --- a/clang-tools-extra/clang-tidy/rename_check.py +++ b/clang-tools-extra/clang-tidy/rename_check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- rename_check.py - clang-tidy check renamer -------------*- python -*--===# # diff --git a/clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py b/clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py index 5eb2e3d65..ef07b1e76 100755 --- a/clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py +++ b/clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- clang-tidy-diff.py - ClangTidy Diff Checker ------------*- python -*--===# # diff --git a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py index ef41c7937..fdb8ab74d 100755 --- a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py +++ b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- run-clang-tidy.py - Parallel clang-tidy runner ---------*- python -*--===# # diff --git a/clang-tools-extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py b/clang-tools-extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py index 461d959bd..61f42952a 100755 --- a/clang-tools-extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py +++ b/clang-tools-extra/include-fixer/find-all-symbols/tool/run-find-all-symbols.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #=- run-find-all-symbols.py - Parallel find-all-symbols runner -*- python -*-=# # diff --git a/clang-tools-extra/test/clang-tidy/check_clang_tidy.py b/clang-tools-extra/test/clang-tidy/check_clang_tidy.py index 9768011a3..4c883ece5 100755 --- a/clang-tools-extra/test/clang-tidy/check_clang_tidy.py +++ b/clang-tools-extra/test/clang-tidy/check_clang_tidy.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- check_clang_tidy.py - ClangTidy Test Helper ------------*- python -*--===# # diff --git a/clang/bindings/python/examples/cindex/cindex-dump.py b/clang/bindings/python/examples/cindex/cindex-dump.py index acec7e0e0..24ef4211f 100644 --- a/clang/bindings/python/examples/cindex/cindex-dump.py +++ b/clang/bindings/python/examples/cindex/cindex-dump.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- cindex-dump.py - cindex/Python Source Dump -------------*- python -*--===# # diff --git a/clang/bindings/python/examples/cindex/cindex-includes.py b/clang/bindings/python/examples/cindex/cindex-includes.py index 17500227a..2dafd717b 100644 --- a/clang/bindings/python/examples/cindex/cindex-includes.py +++ b/clang/bindings/python/examples/cindex/cindex-includes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- cindex-includes.py - cindex/Python Inclusion Graph -----*- python -*--===# # diff --git a/clang/docs/tools/dump_ast_matchers.py b/clang/docs/tools/dump_ast_matchers.py index c96c1ca27..26cf41561 100755 --- a/clang/docs/tools/dump_ast_matchers.py +++ b/clang/docs/tools/dump_ast_matchers.py @@ -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. diff --git a/clang/docs/tools/dump_format_style.py b/clang/docs/tools/dump_format_style.py index 5feb793a4..e18a2ffb3 100755 --- a/clang/docs/tools/dump_format_style.py +++ b/clang/docs/tools/dump_format_style.py @@ -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. diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py index 8277a2477..3589b41b3 100755 --- a/clang/tools/clang-format/clang-format-diff.py +++ b/clang/tools/clang-format/clang-format-diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- clang-format-diff.py - ClangFormat Diff Reformatter ----*- python -*--===# # diff --git a/clang/tools/clang-format/git-clang-format b/clang/tools/clang-format/git-clang-format index 96e3b4e8a..86f468b34 100755 --- a/clang/tools/clang-format/git-clang-format +++ b/clang/tools/clang-format/git-clang-format @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===# # diff --git a/clang/tools/scan-build-py/bin/analyze-build b/clang/tools/scan-build-py/bin/analyze-build index 991cff065..ffaf79d9c 100755 --- a/clang/tools/scan-build-py/bin/analyze-build +++ b/clang/tools/scan-build-py/bin/analyze-build @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The LLVM Compiler Infrastructure # diff --git a/clang/tools/scan-build-py/bin/analyze-c++ b/clang/tools/scan-build-py/bin/analyze-c++ index df1012dee..568683ea4 100755 --- a/clang/tools/scan-build-py/bin/analyze-c++ +++ b/clang/tools/scan-build-py/bin/analyze-c++ @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The LLVM Compiler Infrastructure # diff --git a/clang/tools/scan-build-py/bin/analyze-cc b/clang/tools/scan-build-py/bin/analyze-cc index df1012dee..568683ea4 100755 --- a/clang/tools/scan-build-py/bin/analyze-cc +++ b/clang/tools/scan-build-py/bin/analyze-cc @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The LLVM Compiler Infrastructure # diff --git a/clang/tools/scan-build-py/bin/intercept-build b/clang/tools/scan-build-py/bin/intercept-build index 2c3a26ecd..675c6e9b8 100755 --- a/clang/tools/scan-build-py/bin/intercept-build +++ b/clang/tools/scan-build-py/bin/intercept-build @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The LLVM Compiler Infrastructure # diff --git a/clang/tools/scan-build-py/bin/intercept-c++ b/clang/tools/scan-build-py/bin/intercept-c++ index 67e076f39..9fdde1241 100755 --- a/clang/tools/scan-build-py/bin/intercept-c++ +++ b/clang/tools/scan-build-py/bin/intercept-c++ @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The LLVM Compiler Infrastructure # diff --git a/clang/tools/scan-build-py/bin/intercept-cc b/clang/tools/scan-build-py/bin/intercept-cc index 67e076f39..9fdde1241 100755 --- a/clang/tools/scan-build-py/bin/intercept-cc +++ b/clang/tools/scan-build-py/bin/intercept-cc @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The LLVM Compiler Infrastructure # diff --git a/clang/tools/scan-build-py/bin/scan-build b/clang/tools/scan-build-py/bin/scan-build index f0f34695b..b5876d8bf 100755 --- a/clang/tools/scan-build-py/bin/scan-build +++ b/clang/tools/scan-build-py/bin/scan-build @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- # The LLVM Compiler Infrastructure # diff --git a/clang/tools/scan-view/bin/scan-view b/clang/tools/scan-view/bin/scan-view index 98787b683..10b0a2281 100755 --- a/clang/tools/scan-view/bin/scan-view +++ b/clang/tools/scan-view/bin/scan-view @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/clang/tools/scan-view/share/Reporter.py b/clang/tools/scan-view/share/Reporter.py index b1ff16142..d6300e787 100644 --- a/clang/tools/scan-view/share/Reporter.py +++ b/clang/tools/scan-view/share/Reporter.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- """Methods for reporting bugs.""" diff --git a/clang/tools/scan-view/share/startfile.py b/clang/tools/scan-view/share/startfile.py index 9eb548bc4..cdf3db279 100644 --- a/clang/tools/scan-view/share/startfile.py +++ b/clang/tools/scan-view/share/startfile.py @@ -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 diff --git a/clang/utils/ABITest/ABITestGen.py b/clang/utils/ABITest/ABITestGen.py index 93a6de930..efb35fa73 100755 --- a/clang/utils/ABITest/ABITestGen.py +++ b/clang/utils/ABITest/ABITestGen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function from pprint import pprint diff --git a/clang/utils/CIndex/completion_logger_server.py b/clang/utils/CIndex/completion_logger_server.py index 201667117..02d7cd6fc 100755 --- a/clang/utils/CIndex/completion_logger_server.py +++ b/clang/utils/CIndex/completion_logger_server.py @@ -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 * diff --git a/clang/utils/CaptureCmd b/clang/utils/CaptureCmd index 705585c3b..5ffdfe560 100755 --- a/clang/utils/CaptureCmd +++ b/clang/utils/CaptureCmd @@ -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. diff --git a/clang/utils/CmpDriver b/clang/utils/CmpDriver index 12ce7a325..c2b6ab5ec 100755 --- a/clang/utils/CmpDriver +++ b/clang/utils/CmpDriver @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ A simple utility that compares tool invocations and exit codes issued by diff --git a/clang/utils/FindSpecRefs b/clang/utils/FindSpecRefs index 9097f93f2..3ad581b3d 100755 --- a/clang/utils/FindSpecRefs +++ b/clang/utils/FindSpecRefs @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import re diff --git a/clang/utils/FuzzTest b/clang/utils/FuzzTest index 0e043df7c..c4c956b6e 100755 --- a/clang/utils/FuzzTest +++ b/clang/utils/FuzzTest @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This is a generic fuzz testing tool, see --help for more information. diff --git a/clang/utils/TestUtils/deep-stack.py b/clang/utils/TestUtils/deep-stack.py index 10bf47acb..5fb8d0df8 100755 --- a/clang/utils/TestUtils/deep-stack.py +++ b/clang/utils/TestUtils/deep-stack.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function def pcall(f, N): diff --git a/clang/utils/analyzer/CmpRuns.py b/clang/utils/analyzer/CmpRuns.py index be5034996..a6fbfecfb 100755 --- a/clang/utils/analyzer/CmpRuns.py +++ b/clang/utils/analyzer/CmpRuns.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ CmpRuns - A simple tool for comparing two static analyzer runs to determine diff --git a/clang/utils/analyzer/SATestAdd.py b/clang/utils/analyzer/SATestAdd.py index 52089f4e0..d087a90ba 100755 --- a/clang/utils/analyzer/SATestAdd.py +++ b/clang/utils/analyzer/SATestAdd.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Static Analyzer qualification infrastructure: adding a new project to diff --git a/clang/utils/analyzer/SATestBuild.py b/clang/utils/analyzer/SATestBuild.py index 1c96cd883..65564ec08 100755 --- a/clang/utils/analyzer/SATestBuild.py +++ b/clang/utils/analyzer/SATestBuild.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Static Analyzer qualification infrastructure. diff --git a/clang/utils/analyzer/SATestUpdateDiffs.py b/clang/utils/analyzer/SATestUpdateDiffs.py index ea3c08cc2..08e3f82ff 100755 --- a/clang/utils/analyzer/SATestUpdateDiffs.py +++ b/clang/utils/analyzer/SATestUpdateDiffs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Update reference results for static analyzer. diff --git a/clang/utils/analyzer/SumTimerInfo.py b/clang/utils/analyzer/SumTimerInfo.py index 36e519adb..d1934f19d 100644 --- a/clang/utils/analyzer/SumTimerInfo.py +++ b/clang/utils/analyzer/SumTimerInfo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Script to Summarize statistics in the scan-build output. diff --git a/clang/utils/check_cfc/check_cfc.py b/clang/utils/check_cfc/check_cfc.py index 311f502f8..0bbbc0886 100755 --- a/clang/utils/check_cfc/check_cfc.py +++ b/clang/utils/check_cfc/check_cfc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Check CFC - Check Compile Flow Consistency diff --git a/clang/utils/check_cfc/obj_diff.py b/clang/utils/check_cfc/obj_diff.py index a0951c5bc..b38669483 100755 --- a/clang/utils/check_cfc/obj_diff.py +++ b/clang/utils/check_cfc/obj_diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function diff --git a/clang/utils/check_cfc/test_check_cfc.py b/clang/utils/check_cfc/test_check_cfc.py index 0808252a2..6f149ebcc 100755 --- a/clang/utils/check_cfc/test_check_cfc.py +++ b/clang/utils/check_cfc/test_check_cfc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Test internal functions within check_cfc.py.""" diff --git a/clang/utils/hmaptool/hmaptool b/clang/utils/hmaptool/hmaptool index 58baab2f7..00296f11a 100755 --- a/clang/utils/hmaptool/hmaptool +++ b/clang/utils/hmaptool/hmaptool @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function import json diff --git a/clang/utils/modfuzz.py b/clang/utils/modfuzz.py index 61ca3272a..19a9807b3 100644 --- a/clang/utils/modfuzz.py +++ b/clang/utils/modfuzz.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # To use: # 1) Update the 'decls' list below with your fuzzing configuration. diff --git a/clang/utils/token-delta.py b/clang/utils/token-delta.py index 62b4eb3c7..022fb2f8b 100755 --- a/clang/utils/token-delta.py +++ b/clang/utils/token-delta.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import absolute_import, division, print_function import os diff --git a/clang/www/builtins.py b/clang/www/builtins.py index f0bcf1962..54901487d 100755 --- a/clang/www/builtins.py +++ b/clang/www/builtins.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys, fileinput diff --git a/clang/www/make_cxx_dr_status b/clang/www/make_cxx_dr_status index bc7efcf7f..c368f2ff0 100755 --- a/clang/www/make_cxx_dr_status +++ b/clang/www/make_cxx_dr_status @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import sys, os, re index = 'cwg_index.html' diff --git a/compiler-rt/lib/asan/scripts/asan_symbolize.py b/compiler-rt/lib/asan/scripts/asan_symbolize.py index 2dbb05283..b15b81694 100755 --- a/compiler-rt/lib/asan/scripts/asan_symbolize.py +++ b/compiler-rt/lib/asan/scripts/asan_symbolize.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- lib/asan/scripts/asan_symbolize.py -----------------------------------===# # # The LLVM Compiler Infrastructure diff --git a/compiler-rt/lib/dfsan/scripts/build-libc-list.py b/compiler-rt/lib/dfsan/scripts/build-libc-list.py index eddb6c07e..a57a862bb 100755 --- a/compiler-rt/lib/dfsan/scripts/build-libc-list.py +++ b/compiler-rt/lib/dfsan/scripts/build-libc-list.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- lib/dfsan/scripts/build-libc-list.py ---------------------------------===# # # The LLVM Compiler Infrastructure diff --git a/compiler-rt/lib/fuzzer/scripts/collect_data_flow.py b/compiler-rt/lib/fuzzer/scripts/collect_data_flow.py index 3edff66bb..e86141453 100755 --- a/compiler-rt/lib/fuzzer/scripts/collect_data_flow.py +++ b/compiler-rt/lib/fuzzer/scripts/collect_data_flow.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- lib/fuzzer/scripts/collect_data_flow.py ------------------------------===# # # The LLVM Compiler Infrastructure diff --git a/compiler-rt/lib/fuzzer/scripts/merge_data_flow.py b/compiler-rt/lib/fuzzer/scripts/merge_data_flow.py index d2f5081e7..c26e3259b 100755 --- a/compiler-rt/lib/fuzzer/scripts/merge_data_flow.py +++ b/compiler-rt/lib/fuzzer/scripts/merge_data_flow.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- lib/fuzzer/scripts/merge_data_flow.py ------------------------------===# # # The LLVM Compiler Infrastructure diff --git a/compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py b/compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py index 74478ad55..1068eab69 100755 --- a/compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py +++ b/compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- lib/fuzzer/scripts/unbalanced_allocs.py ------------------------------===# # # The LLVM Compiler Infrastructure diff --git a/compiler-rt/lib/sanitizer_common/scripts/cpplint.py b/compiler-rt/lib/sanitizer_common/scripts/cpplint.py index d45c47f7e..948266145 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/cpplint.py +++ b/compiler-rt/lib/sanitizer_common/scripts/cpplint.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Copyright (c) 2009 Google Inc. All rights reserved. # diff --git a/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py b/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py index 4a9c7af95..97a6bdeba 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py +++ b/compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- lib/sanitizer_common/scripts/gen_dynamic_list.py ---------------------===# # # The LLVM Compiler Infrastructure diff --git a/compiler-rt/lib/sanitizer_common/scripts/litlint.py b/compiler-rt/lib/sanitizer_common/scripts/litlint.py index 81b89c214..dd8d3aba0 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/litlint.py +++ b/compiler-rt/lib/sanitizer_common/scripts/litlint.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # litlint # diff --git a/compiler-rt/lib/sanitizer_common/scripts/sancov.py b/compiler-rt/lib/sanitizer_common/scripts/sancov.py index 35606396b..2a2876d46 100755 --- a/compiler-rt/lib/sanitizer_common/scripts/sancov.py +++ b/compiler-rt/lib/sanitizer_common/scripts/sancov.py @@ -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 diff --git a/examples/Kaleidoscope/MCJIT/cached/genk-timing.py b/examples/Kaleidoscope/MCJIT/cached/genk-timing.py index 87bbfbf32..a6dd73e0a 100644 --- a/examples/Kaleidoscope/MCJIT/cached/genk-timing.py +++ b/examples/Kaleidoscope/MCJIT/cached/genk-timing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/examples/Kaleidoscope/MCJIT/cached/split-lib.py b/examples/Kaleidoscope/MCJIT/cached/split-lib.py index 1aa80ee83..bf1ca576f 100644 --- a/examples/Kaleidoscope/MCJIT/cached/split-lib.py +++ b/examples/Kaleidoscope/MCJIT/cached/split-lib.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/examples/Kaleidoscope/MCJIT/complete/genk-timing.py b/examples/Kaleidoscope/MCJIT/complete/genk-timing.py index c3b4d23c0..8c0017215 100644 --- a/examples/Kaleidoscope/MCJIT/complete/genk-timing.py +++ b/examples/Kaleidoscope/MCJIT/complete/genk-timing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/examples/Kaleidoscope/MCJIT/complete/split-lib.py b/examples/Kaleidoscope/MCJIT/complete/split-lib.py index 61c9a5b16..08450018c 100644 --- a/examples/Kaleidoscope/MCJIT/complete/split-lib.py +++ b/examples/Kaleidoscope/MCJIT/complete/split-lib.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py b/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py index 87bbfbf32..a6dd73e0a 100644 --- a/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py +++ b/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/libcxx/test/std/language.support/support.limits/support.limits.general/generate_feature_test_macro_components.py b/libcxx/test/std/language.support/support.limits/support.limits.general/generate_feature_test_macro_components.py index c80ebb11e..1395d5eef 100755 --- a/libcxx/test/std/language.support/support.limits/support.limits.general/generate_feature_test_macro_components.py +++ b/libcxx/test/std/language.support/support.limits/support.limits.general/generate_feature_test_macro_components.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import tempfile diff --git a/libcxx/utils/cat_files.py b/libcxx/utils/cat_files.py index 83e7632f3..f84b692a5 100755 --- a/libcxx/utils/cat_files.py +++ b/libcxx/utils/cat_files.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===----------------------------------------------------------------------===## # # The LLVM Compiler Infrastructure diff --git a/libcxx/utils/gen_link_script.py b/libcxx/utils/gen_link_script.py index 24fe5ce99..e744ae200 100755 --- a/libcxx/utils/gen_link_script.py +++ b/libcxx/utils/gen_link_script.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===----------------------------------------------------------------------===## # # The LLVM Compiler Infrastructure diff --git a/libcxx/utils/google-benchmark/mingw.py b/libcxx/utils/google-benchmark/mingw.py index 706ad559d..4eb75ab86 100644 --- a/libcxx/utils/google-benchmark/mingw.py +++ b/libcxx/utils/google-benchmark/mingw.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # encoding: utf-8 import argparse diff --git a/libcxx/utils/google-benchmark/tools/compare.py b/libcxx/utils/google-benchmark/tools/compare.py index 539ace6fb..b1c0dedef 100755 --- a/libcxx/utils/google-benchmark/tools/compare.py +++ b/libcxx/utils/google-benchmark/tools/compare.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest """ diff --git a/libcxx/utils/google-benchmark/tools/strip_asm.py b/libcxx/utils/google-benchmark/tools/strip_asm.py index 9030550b4..d131dc719 100755 --- a/libcxx/utils/google-benchmark/tools/strip_asm.py +++ b/libcxx/utils/google-benchmark/tools/strip_asm.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ strip_asm.py - Cleanup ASM output for the specified file diff --git a/libcxx/utils/merge_archives.py b/libcxx/utils/merge_archives.py index 58d92f0e2..0f5d6eb64 100755 --- a/libcxx/utils/merge_archives.py +++ b/libcxx/utils/merge_archives.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===----------------------------------------------------------------------===## # # The LLVM Compiler Infrastructure diff --git a/libcxx/utils/sym_diff.py b/libcxx/utils/sym_diff.py index c01f71c92..ef81af819 100755 --- a/libcxx/utils/sym_diff.py +++ b/libcxx/utils/sym_diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===----------------------------------------------------------------------===## # # The LLVM Compiler Infrastructure diff --git a/libcxx/utils/sym_extract.py b/libcxx/utils/sym_extract.py index 0d9d2eeb8..c911b2ff3 100755 --- a/libcxx/utils/sym_extract.py +++ b/libcxx/utils/sym_extract.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===----------------------------------------------------------------------===## # # The LLVM Compiler Infrastructure diff --git a/libcxx/utils/sym_match.py b/libcxx/utils/sym_match.py index 48582ce66..0724a6d8d 100755 --- a/libcxx/utils/sym_match.py +++ b/libcxx/utils/sym_match.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===----------------------------------------------------------------------===## # # The LLVM Compiler Infrastructure diff --git a/lld/utils/benchmark.py b/lld/utils/benchmark.py index f1deb0647..fbf15db30 100755 --- a/lld/utils/benchmark.py +++ b/lld/utils/benchmark.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # The LLVM Compiler Infrastructure # diff --git a/lldb/examples/python/file_extract.py b/lldb/examples/python/file_extract.py index 7a617e911..61e93c8c4 100755 --- a/lldb/examples/python/file_extract.py +++ b/lldb/examples/python/file_extract.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import string import struct diff --git a/lldb/lit/helper/build.py b/lldb/lit/helper/build.py index fd52b7db4..8029b4796 100755 --- a/lldb/lit/helper/build.py +++ b/lldb/lit/helper/build.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 from __future__ import print_function diff --git a/lldb/lldb.xcodeproj/project.pbxproj b/lldb/lldb.xcodeproj/project.pbxproj index b2ab9696a..09a617350 100644 --- a/lldb/lldb.xcodeproj/project.pbxproj +++ b/lldb/lldb.xcodeproj/project.pbxproj @@ -7429,7 +7429,7 @@ ); 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; diff --git a/lldb/packages/Python/lldbsuite/test/attic/tester.py b/lldb/packages/Python/lldbsuite/test/attic/tester.py index 2e7835123..6140e1e55 100644 --- a/lldb/packages/Python/lldbsuite/test/attic/tester.py +++ b/lldb/packages/Python/lldbsuite/test/attic/tester.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf8 -*- from __future__ import print_function diff --git a/lldb/packages/Python/lldbsuite/test/bench.py b/lldb/packages/Python/lldbsuite/test/bench.py index 41d44bad9..4cda5694a 100644 --- a/lldb/packages/Python/lldbsuite/test/bench.py +++ b/lldb/packages/Python/lldbsuite/test/bench.py @@ -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 diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/disable.py b/lldb/packages/Python/lldbsuite/test/issue_verification/disable.py index 6d1f93e8b..c775474a9 100755 --- a/lldb/packages/Python/lldbsuite/test/issue_verification/disable.py +++ b/lldb/packages/Python/lldbsuite/test/issue_verification/disable.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Renames *.py files to *.py.park.""" import os import sys diff --git a/lldb/packages/Python/lldbsuite/test/issue_verification/enable.py b/lldb/packages/Python/lldbsuite/test/issue_verification/enable.py index eb19276de..2b4eaefc3 100755 --- a/lldb/packages/Python/lldbsuite/test/issue_verification/enable.py +++ b/lldb/packages/Python/lldbsuite/test/issue_verification/enable.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Renames *.py.park files to *.py.""" import os import sys diff --git a/lldb/packages/Python/lldbsuite/test/redo.py b/lldb/packages/Python/lldbsuite/test/redo.py index 03052c3a0..642a5c2af 100644 --- a/lldb/packages/Python/lldbsuite/test/redo.py +++ b/lldb/packages/Python/lldbsuite/test/redo.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ A simple utility to redo the failed/errored tests. diff --git a/lldb/packages/Python/lldbsuite/test/test_runner/test/inferior.py b/lldb/packages/Python/lldbsuite/test/test_runner/test/inferior.py index 4207bac30..8d9639c4a 100755 --- a/lldb/packages/Python/lldbsuite/test/test_runner/test/inferior.py +++ b/lldb/packages/Python/lldbsuite/test/test_runner/test/inferior.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Inferior program used by process control tests.""" from __future__ import print_function diff --git a/lldb/packages/Python/lldbsuite/test/test_runner/test/test_process_control.py b/lldb/packages/Python/lldbsuite/test/test_runner/test/test_process_control.py index 88ad961be..ce952d708 100755 --- a/lldb/packages/Python/lldbsuite/test/test_runner/test/test_process_control.py +++ b/lldb/packages/Python/lldbsuite/test/test_runner/test/test_process_control.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ The LLVM Compiler Infrastructure diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py index 066158d08..fdca8dbc6 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import binascii import json diff --git a/lldb/packages/Python/lldbsuite/test_event/test/src/TestCatchInvalidDecorator.py b/lldb/packages/Python/lldbsuite/test_event/test/src/TestCatchInvalidDecorator.py index 5b199defc..b24ce7497 100644 --- a/lldb/packages/Python/lldbsuite/test_event/test/src/TestCatchInvalidDecorator.py +++ b/lldb/packages/Python/lldbsuite/test_event/test/src/TestCatchInvalidDecorator.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Tests that the event system reports issues during decorator handling as errors. diff --git a/lldb/scripts/Python/finish-swig-Python-LLDB.sh b/lldb/scripts/Python/finish-swig-Python-LLDB.sh index 31bc2b349..1dcad75e0 100755 --- a/lldb/scripts/Python/finish-swig-Python-LLDB.sh +++ b/lldb/scripts/Python/finish-swig-Python-LLDB.sh @@ -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} --version 2>&1 | sed -e 's,Python ,,' -e 's,[.][0-9],,2' -e 's,[a-z][a-z][0-9],,'` diff --git a/lldb/scripts/Xcode/build-llvm.py b/lldb/scripts/Xcode/build-llvm.py index 4d868de6b..e3777bf44 100755 --- a/lldb/scripts/Xcode/build-llvm.py +++ b/lldb/scripts/Xcode/build-llvm.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import errno import hashlib diff --git a/lldb/scripts/Xcode/package-clang-headers.py b/lldb/scripts/Xcode/package-clang-headers.py index 32f84bc08..b34563bec 100644 --- a/lldb/scripts/Xcode/package-clang-headers.py +++ b/lldb/scripts/Xcode/package-clang-headers.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # package-clang-headers.py # diff --git a/lldb/scripts/analyze-project-deps.py b/lldb/scripts/analyze-project-deps.py index b7f6e6803..83b44cbc5 100755 --- a/lldb/scripts/analyze-project-deps.py +++ b/lldb/scripts/analyze-project-deps.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import argparse import itertools diff --git a/lldb/scripts/buildbot.py b/lldb/scripts/buildbot.py index 29c383c30..5a6afafa3 100755 --- a/lldb/scripts/buildbot.py +++ b/lldb/scripts/buildbot.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import argparse import os diff --git a/lldb/scripts/prepare_bindings.py b/lldb/scripts/prepare_bindings.py index 6d70f5bf4..d6caead02 100755 --- a/lldb/scripts/prepare_bindings.py +++ b/lldb/scripts/prepare_bindings.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ The LLVM Compiler Infrastructure diff --git a/lldb/scripts/shush b/lldb/scripts/shush index a2dd6c8c5..f49d00cd1 100755 --- a/lldb/scripts/shush +++ b/lldb/scripts/shush @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import subprocess diff --git a/lldb/scripts/swig_bot.py b/lldb/scripts/swig_bot.py index 888fc1011..c261454a3 100644 --- a/lldb/scripts/swig_bot.py +++ b/lldb/scripts/swig_bot.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ SWIG generation top-level script. Supports both local and remote generation diff --git a/lldb/scripts/swig_bot_lib/client.py b/lldb/scripts/swig_bot_lib/client.py index d9f0fb47e..5f8d6add8 100644 --- a/lldb/scripts/swig_bot_lib/client.py +++ b/lldb/scripts/swig_bot_lib/client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ SWIG generation client. Supports both local and remote generation of SWIG diff --git a/lldb/scripts/swig_bot_lib/local.py b/lldb/scripts/swig_bot_lib/local.py index b26ea2f53..a84c23d56 100644 --- a/lldb/scripts/swig_bot_lib/local.py +++ b/lldb/scripts/swig_bot_lib/local.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Shared functionality used by `client` and `server` when generating or preparing diff --git a/lldb/scripts/swig_bot_lib/remote.py b/lldb/scripts/swig_bot_lib/remote.py index 712a5e2a5..8970c72d9 100644 --- a/lldb/scripts/swig_bot_lib/remote.py +++ b/lldb/scripts/swig_bot_lib/remote.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Shared functionality used by `client` and `server` when dealing with diff --git a/lldb/scripts/swig_bot_lib/server.py b/lldb/scripts/swig_bot_lib/server.py index 57fb8d9db..58a9927fd 100644 --- a/lldb/scripts/swig_bot_lib/server.py +++ b/lldb/scripts/swig_bot_lib/server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ SWIG generation server. Listens for connections from swig generation clients diff --git a/lldb/scripts/verify_api.py b/lldb/scripts/verify_api.py index 630247d93..b5b887f65 100755 --- a/lldb/scripts/verify_api.py +++ b/lldb/scripts/verify_api.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import commands import optparse diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py index 1f9d52354..30e953e8b 100755 --- a/lldb/test/dotest.py +++ b/lldb/test/dotest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 if __name__ == "__main__": import use_lldb_suite diff --git a/lldb/third_party/Python/module/pexpect-2.4/FSM.py b/lldb/third_party/Python/module/pexpect-2.4/FSM.py index 420afb748..de7130373 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/FSM.py +++ b/lldb/third_party/Python/module/pexpect-2.4/FSM.py @@ -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 diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/astat.py b/lldb/third_party/Python/module/pexpect-2.4/examples/astat.py index a5d1b3514..9bf5cfd0d 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/astat.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/astat.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This runs Apache Status on the remote host and returns the number of requests per second. diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/bd_client.py b/lldb/third_party/Python/module/pexpect-2.4/examples/bd_client.py index a941bc935..7c94d4a7f 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/bd_client.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/bd_client.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This is a very simple client for the backdoor daemon. This is intended more for testing rather than normal use. See bd_serv.py """ diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/bd_serv.py b/lldb/third_party/Python/module/pexpect-2.4/examples/bd_serv.py index aa6a9ddb2..60a44f063 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/bd_serv.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/bd_serv.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Back door shell server diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/cgishell.cgi b/lldb/third_party/Python/module/pexpect-2.4/examples/cgishell.cgi index 1e3affc1c..9674b1eec 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/cgishell.cgi +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/cgishell.cgi @@ -1,5 +1,5 @@ #!/usr/bin/python -##!/usr/bin/env python +##!/usr/bin/env python3 """CGI shell server This exposes a shell terminal on a web page. diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/chess.py b/lldb/third_party/Python/module/pexpect-2.4/examples/chess.py index 2e785182b..9a1da357b 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/chess.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/chess.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''This demonstrates controlling a screen oriented application (curses). It starts two instances of gnuchess and then pits them against each other. diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/chess2.py b/lldb/third_party/Python/module/pexpect-2.4/examples/chess2.py index c75b6d849..c1fc62c07 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/chess2.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/chess2.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''This demonstrates controlling a screen oriented application (curses). It starts two instances of gnuchess and then pits them against each other. diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/chess3.py b/lldb/third_party/Python/module/pexpect-2.4/examples/chess3.py index 2fa7fb627..efc27ad7d 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/chess3.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/chess3.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''This demonstrates controlling a screen oriented application (curses). It starts two instances of gnuchess and then pits them against each other. diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/df.py b/lldb/third_party/Python/module/pexpect-2.4/examples/df.py index e6c06a8fb..65374ffca 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/df.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/df.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This collects filesystem capacity info using the 'df' command. Tuples of filesystem name and percentage are stored in a list. A simple report is diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/fix_cvs_files.py b/lldb/third_party/Python/module/pexpect-2.4/examples/fix_cvs_files.py index 6fecf7cfb..11415e3e5 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/fix_cvs_files.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/fix_cvs_files.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This is for cleaning up binary files improperly added to CVS. This script scans the given path to find binary files; checks with CVS to see if the sticky diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py b/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py index c85963270..5ca8069bc 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/ftp.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This demonstrates an FTP "bookmark". This connects to an ftp site; does a few ftp stuff; and then gives the user interactive control over the session. In diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/hive.py b/lldb/third_party/Python/module/pexpect-2.4/examples/hive.py index d2b13d4f0..f9b552226 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/hive.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/hive.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """hive -- Hive Shell diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/monitor.py b/lldb/third_party/Python/module/pexpect-2.4/examples/monitor.py index 6ed6589d6..073dc797f 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/monitor.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/monitor.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This runs a sequence of commands on a remote host using SSH. It runs a simple system checks such as uptime and free to monitor the state of the remote diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/passmass.py b/lldb/third_party/Python/module/pexpect-2.4/examples/passmass.py index 3d129b67d..84fbbc628 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/passmass.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/passmass.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Change passwords on the named machines. passmass host1 host2 host3 . . . Note that login shell prompt on remote machine must end in # or $. """ diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/python.py b/lldb/third_party/Python/module/pexpect-2.4/examples/python.py index e7ef462ba..aae53c844 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/python.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/python.py @@ -1,13 +1,13 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This starts the python interpreter; captures the startup message; then gives the user interactive control over the session. Why? For fun... """ # Don't do this unless you like being John Malkovich -# c = pexpect.spawn ('/usr/bin/env python ./python.py') +# c = pexpect.spawn ('/usr/bin/env python3 ./python.py') import pexpect -c = pexpect.spawn('/usr/bin/env python') +c = pexpect.spawn('/usr/bin/env python3') c.expect('>>>') print 'And now for something completely different...' f = lambda s: s and f(s[1:]) + s[0] # Makes a function to reverse a string. diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/rippy.py b/lldb/third_party/Python/module/pexpect-2.4/examples/rippy.py index 8967821b1..2debc9299 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/rippy.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/rippy.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Rippy! diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/script.py b/lldb/third_party/Python/module/pexpect-2.4/examples/script.py index 41e2ea814..9079fc70d 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/script.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/script.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This spawns a sub-shell (bash) and gives the user interactive control. The entire shell session is logged to a file called script.log. This behaves much diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/ssh_tunnel.py b/lldb/third_party/Python/module/pexpect-2.4/examples/ssh_tunnel.py index ae1ce46fa..e50330869 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/ssh_tunnel.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/ssh_tunnel.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This starts an SSH tunnel to a given host. If the SSH process ever dies then this script will detect that and restart it. I use this under Cygwin to keep diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/sshls.py b/lldb/third_party/Python/module/pexpect-2.4/examples/sshls.py index 8e4909ac4..3d9a22af0 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/sshls.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/sshls.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This runs 'ls -l' on a remote host using SSH. At the prompts enter hostname, user, and password. diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/topip.py b/lldb/third_party/Python/module/pexpect-2.4/examples/topip.py index 498f9a3b5..d393e7106 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/topip.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/topip.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ This runs netstat on a local or remote server. It calculates some simple statistical information on the number of external inet connections. It groups diff --git a/lldb/third_party/Python/module/pexpect-2.4/examples/uptime.py b/lldb/third_party/Python/module/pexpect-2.4/examples/uptime.py index 65cfc6cd7..fcf8fcdc0 100644 --- a/lldb/third_party/Python/module/pexpect-2.4/examples/uptime.py +++ b/lldb/third_party/Python/module/pexpect-2.4/examples/uptime.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """This displays uptime information using uptime. This is redundant, but it demonstrates expecting for a regular expression that uses subgroups. diff --git a/lldb/utils/git-svn/convert.py b/lldb/utils/git-svn/convert.py index 589522c78..e9af3b9af 100755 --- a/lldb/utils/git-svn/convert.py +++ b/lldb/utils/git-svn/convert.py @@ -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. diff --git a/lldb/utils/lldb-dotest/lldb-dotest.in b/lldb/utils/lldb-dotest/lldb-dotest.in index c6cd8cbe7..eee5086bd 100755 --- a/lldb/utils/lldb-dotest/lldb-dotest.in +++ b/lldb/utils/lldb-dotest/lldb-dotest.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import subprocess import sys diff --git a/lldb/utils/lui/lui.py b/lldb/utils/lui/lui.py index 9b473f5ff..f34c3fb1c 100755 --- a/lldb/utils/lui/lui.py +++ b/lldb/utils/lui/lui.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ##===-- lui.py -----------------------------------------------*- Python -*-===## ## # The LLVM Compiler Infrastructure diff --git a/lldb/utils/lui/sandbox.py b/lldb/utils/lui/sandbox.py index 93b3c2313..783196129 100755 --- a/lldb/utils/lui/sandbox.py +++ b/lldb/utils/lui/sandbox.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 ##===-- sandbox.py -------------------------------------------*- Python -*-===## ## # The LLVM Compiler Infrastructure diff --git a/lldb/utils/misc/grep-svn-log.py b/lldb/utils/misc/grep-svn-log.py index 86cc3ef17..4aa217234 100755 --- a/lldb/utils/misc/grep-svn-log.py +++ b/lldb/utils/misc/grep-svn-log.py @@ -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 diff --git a/lldb/utils/sync-source/syncsource.py b/lldb/utils/sync-source/syncsource.py index 9e27ca2b7..a5cebcc36 100644 --- a/lldb/utils/sync-source/syncsource.py +++ b/lldb/utils/sync-source/syncsource.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ The LLVM Compiler Infrastructure diff --git a/lldb/utils/test/disasm.py b/lldb/utils/test/disasm.py index e75c070e0..7199e279c 100755 --- a/lldb/utils/test/disasm.py +++ b/lldb/utils/test/disasm.py @@ -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, diff --git a/lldb/utils/test/lldb-disasm.py b/lldb/utils/test/lldb-disasm.py index 1069bf477..ff5d06dd1 100755 --- a/lldb/utils/test/lldb-disasm.py +++ b/lldb/utils/test/lldb-disasm.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Run lldb to disassemble all the available functions for an executable image. diff --git a/lldb/utils/test/llvm-mc-shell.py b/lldb/utils/test/llvm-mc-shell.py index 4d3119598..18b77f73d 100755 --- a/lldb/utils/test/llvm-mc-shell.py +++ b/lldb/utils/test/llvm-mc-shell.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Run llvm-mc interactively. diff --git a/lldb/utils/test/ras.py b/lldb/utils/test/ras.py index 25b76bc1e..1f007fabb 100755 --- a/lldb/utils/test/ras.py +++ b/lldb/utils/test/ras.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Run the test suite and send the result as an email message. diff --git a/lldb/utils/test/run-dis.py b/lldb/utils/test/run-dis.py index b635e8c62..e5fd2bdcf 100755 --- a/lldb/utils/test/run-dis.py +++ b/lldb/utils/test/run-dis.py @@ -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 diff --git a/lldb/utils/test/run-until-faulted.py b/lldb/utils/test/run-until-faulted.py index 794f4fc84..2f57f765a 100755 --- a/lldb/utils/test/run-until-faulted.py +++ b/lldb/utils/test/run-until-faulted.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Run a program via lldb until it fails. diff --git a/test/BugPoint/compile-custom.ll.py b/test/BugPoint/compile-custom.ll.py index b0062ac0b..1a37844c1 100755 --- a/test/BugPoint/compile-custom.ll.py +++ b/test/BugPoint/compile-custom.ll.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/test/Other/opt-bisect-helper.py b/test/Other/opt-bisect-helper.py index d2ab4ce09..0484a9f0d 100755 --- a/test/Other/opt-bisect-helper.py +++ b/test/Other/opt-bisect-helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/test/TableGen/JSON-check.py b/test/TableGen/JSON-check.py index b6bc4ee6c..1082c655d 100644 --- a/test/TableGen/JSON-check.py +++ b/test/TableGen/JSON-check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import subprocess diff --git a/test/tools/llvm-readobj/Inputs/relocs.py b/test/tools/llvm-readobj/Inputs/relocs.py index 8e621cef5..01f68fbd6 100644 --- a/test/tools/llvm-readobj/Inputs/relocs.py +++ b/test/tools/llvm-readobj/Inputs/relocs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/tools/opt-viewer/opt-diff.py b/tools/opt-viewer/opt-diff.py index 36e81a5d5..da8eeb385 100755 --- a/tools/opt-viewer/opt-diff.py +++ b/tools/opt-viewer/opt-diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/tools/opt-viewer/opt-stats.py b/tools/opt-viewer/opt-stats.py index f4ee3a7d4..0e185ff72 100755 --- a/tools/opt-viewer/opt-stats.py +++ b/tools/opt-viewer/opt-stats.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/tools/opt-viewer/opt-viewer.py b/tools/opt-viewer/opt-viewer.py index f65825063..160f07349 100755 --- a/tools/opt-viewer/opt-viewer.py +++ b/tools/opt-viewer/opt-viewer.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/tools/opt-viewer/optrecord.py b/tools/opt-viewer/optrecord.py index 0193d2570..42136b97b 100644 --- a/tools/opt-viewer/optrecord.py +++ b/tools/opt-viewer/optrecord.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/utils/Misc/zkill b/utils/Misc/zkill index bc0bfd586..b2971423c 100755 --- a/utils/Misc/zkill +++ b/utils/Misc/zkill @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import re diff --git a/utils/Reviewing/find_interesting_reviews.py b/utils/Reviewing/find_interesting_reviews.py index 7bfbec8cf..a0c06899c 100644 --- a/utils/Reviewing/find_interesting_reviews.py +++ b/utils/Reviewing/find_interesting_reviews.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/utils/Target/ARM/analyze-match-table.py b/utils/Target/ARM/analyze-match-table.py index d4e158d9e..196c0aa05 100644 --- a/utils/Target/ARM/analyze-match-table.py +++ b/utils/Target/ARM/analyze-match-table.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/utils/abtest.py b/utils/abtest.py index 69a86f648..8250c8c3f 100755 --- a/utils/abtest.py +++ b/utils/abtest.py @@ -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 diff --git a/utils/benchmark/mingw.py b/utils/benchmark/mingw.py index 706ad559d..4eb75ab86 100644 --- a/utils/benchmark/mingw.py +++ b/utils/benchmark/mingw.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # encoding: utf-8 import argparse diff --git a/utils/benchmark/tools/compare.py b/utils/benchmark/tools/compare.py index f0a4455f5..9cfae85e6 100644 --- a/utils/benchmark/tools/compare.py +++ b/utils/benchmark/tools/compare.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ compare.py - versatile benchmark output compare tool diff --git a/utils/benchmark/tools/strip_asm.py b/utils/benchmark/tools/strip_asm.py index 9030550b4..d131dc719 100644 --- a/utils/benchmark/tools/strip_asm.py +++ b/utils/benchmark/tools/strip_asm.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ strip_asm.py - Cleanup ASM output for the specified file diff --git a/utils/bisect b/utils/bisect index d1b12575e..94c229f2d 100755 --- a/utils/bisect +++ b/utils/bisect @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import sys diff --git a/utils/bisect-skip-count b/utils/bisect-skip-count index f4f8ddcec..f9e4c2bab 100755 --- a/utils/bisect-skip-count +++ b/utils/bisect-skip-count @@ -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 # diff --git a/utils/bugpoint_gisel_reducer.py b/utils/bugpoint_gisel_reducer.py index 4c366efbb..5df1cbed1 100755 --- a/utils/bugpoint_gisel_reducer.py +++ b/utils/bugpoint_gisel_reducer.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Reduces GlobalISel failures. diff --git a/utils/clang-parse-diagnostics-file b/utils/clang-parse-diagnostics-file index 59b13f306..2b28ada21 100755 --- a/utils/clang-parse-diagnostics-file +++ b/utils/clang-parse-diagnostics-file @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import plistlib diff --git a/utils/create_ladder_graph.py b/utils/create_ladder_graph.py index a5946ff24..a32e3a417 100644 --- a/utils/create_ladder_graph.py +++ b/utils/create_ladder_graph.py @@ -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 diff --git a/utils/extract_symbols.py b/utils/extract_symbols.py index 93ad2e9c3..7c7c6a93b 100755 --- a/utils/extract_symbols.py +++ b/utils/extract_symbols.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A tool for extracting a list of symbols to export diff --git a/utils/extract_vplan.py b/utils/extract_vplan.py index b4e34fc76..c2a31f728 100755 --- a/utils/extract_vplan.py +++ b/utils/extract_vplan.py @@ -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 diff --git a/utils/git-svn/git-llvm b/utils/git-svn/git-llvm index bf234301f..968278e44 100755 --- a/utils/git-svn/git-llvm +++ b/utils/git-svn/git-llvm @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # ======- git-llvm - LLVM Git Help Integration ---------*- python -*--========# # diff --git a/utils/gn/build/run_tablegen.py b/utils/gn/build/run_tablegen.py index c7694236b..71476d242 100755 --- a/utils/gn/build/run_tablegen.py +++ b/utils/gn/build/run_tablegen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Runs tablegen.""" import subprocess diff --git a/utils/gn/build/symlink_or_copy.py b/utils/gn/build/symlink_or_copy.py index 9841dc97a..e5a91bf67 100644 --- a/utils/gn/build/symlink_or_copy.py +++ b/utils/gn/build/symlink_or_copy.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Symlinks, or on Windows copies, an existing file to a second location. diff --git a/utils/gn/build/sync_source_lists_from_cmake.py b/utils/gn/build/sync_source_lists_from_cmake.py index 21abe7ef9..8e91e98c5 100755 --- a/utils/gn/build/sync_source_lists_from_cmake.py +++ b/utils/gn/build/sync_source_lists_from_cmake.py @@ -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. diff --git a/utils/gn/build/write_cmake_config.py b/utils/gn/build/write_cmake_config.py index eba6b4ec5..cb83caf88 100755 --- a/utils/gn/build/write_cmake_config.py +++ b/utils/gn/build/write_cmake_config.py @@ -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 diff --git a/utils/gn/build/write_vcsrevision.py b/utils/gn/build/write_vcsrevision.py index 974004df9..30422a837 100755 --- a/utils/gn/build/write_vcsrevision.py +++ b/utils/gn/build/write_vcsrevision.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Gets the current revision and writes it to VCSRevision.h.""" diff --git a/utils/gn/gn.py b/utils/gn/gn.py index f80873b3b..ddb3eacc2 100755 --- a/utils/gn/gn.py +++ b/utils/gn/gn.py @@ -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. diff --git a/utils/indirect_calls.py b/utils/indirect_calls.py index e460ff7d0..66633886d 100755 --- a/utils/indirect_calls.py +++ b/utils/indirect_calls.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A tool for looking for indirect jumps and calls in x86 binaries. diff --git a/utils/lit/lit.py b/utils/lit/lit.py index af070c69b..51f3ad559 100755 --- a/utils/lit/lit.py +++ b/utils/lit/lit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys from lit.main import main diff --git a/utils/lit/lit/ProgressBar.py b/utils/lit/lit/ProgressBar.py index d4e8f9ff6..036d6540d 100644 --- a/utils/lit/lit/ProgressBar.py +++ b/utils/lit/lit/ProgressBar.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Source: http://code.activestate.com/recipes/475116/, with # modifications by Daniel Dunbar. diff --git a/utils/lit/lit/main.py b/utils/lit/lit/main.py index 807360ac5..eeb729cd1 100755 --- a/utils/lit/lit/main.py +++ b/utils/lit/lit/main.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ lit - LLVM Integrated Tester. diff --git a/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py b/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py index dd49f025b..61230a1a9 100644 --- a/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py +++ b/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys diff --git a/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py b/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py index f3a90ff4c..112039e03 100644 --- a/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py +++ b/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import time diff --git a/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py b/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py index d7bc5968f..d7d6c8cf5 100644 --- a/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py +++ b/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys diff --git a/utils/lit/tests/Inputs/shtest-env/print_environment.py b/utils/lit/tests/Inputs/shtest-env/print_environment.py index ac9a80e6d..ed7e6776e 100644 --- a/utils/lit/tests/Inputs/shtest-env/print_environment.py +++ b/utils/lit/tests/Inputs/shtest-env/print_environment.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_statement import os diff --git a/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.py b/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.py index a5a2bc9da..b6c858336 100644 --- a/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.py +++ b/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys diff --git a/utils/lit/tests/Inputs/shtest-shell/check_args.py b/utils/lit/tests/Inputs/shtest-shell/check_args.py index 2f7a2503b..8cd890c55 100644 --- a/utils/lit/tests/Inputs/shtest-shell/check_args.py +++ b/utils/lit/tests/Inputs/shtest-shell/check_args.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import argparse import platform diff --git a/utils/lit/tests/Inputs/shtest-shell/check_path.py b/utils/lit/tests/Inputs/shtest-shell/check_path.py index 467505b7f..71a49cc83 100644 --- a/utils/lit/tests/Inputs/shtest-shell/check_path.py +++ b/utils/lit/tests/Inputs/shtest-shell/check_path.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py b/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py index 9463251d8..f5e78b157 100644 --- a/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py +++ b/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys diff --git a/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py b/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py index 357089d48..56919479c 100644 --- a/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py +++ b/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys diff --git a/utils/llvm-build/llvm-build b/utils/llvm-build/llvm-build index 7377e3d3f..ac1463053 100755 --- a/utils/llvm-build/llvm-build +++ b/utils/llvm-build/llvm-build @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import llvmbuild diff --git a/utils/llvm-gisel-cov.py b/utils/llvm-gisel-cov.py index 820fceab0..744275e74 100644 --- a/utils/llvm-gisel-cov.py +++ b/utils/llvm-gisel-cov.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Summarize the information in the given coverage files. diff --git a/utils/llvm-lit/llvm-lit.in b/utils/llvm-lit/llvm-lit.in index 8700d1567..f49741973 100755 --- a/utils/llvm-lit/llvm-lit.in +++ b/utils/llvm-lit/llvm-lit.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os diff --git a/utils/prepare-code-coverage-artifact.py b/utils/prepare-code-coverage-artifact.py index 5c4af242d..26bb4ec70 100644 --- a/utils/prepare-code-coverage-artifact.py +++ b/utils/prepare-code-coverage-artifact.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function diff --git a/utils/release/findRegressions-nightly.py b/utils/release/findRegressions-nightly.py index e7e13b083..7543cb806 100755 --- a/utils/release/findRegressions-nightly.py +++ b/utils/release/findRegressions-nightly.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import re, string, sys, os, time diff --git a/utils/release/findRegressions-simple.py b/utils/release/findRegressions-simple.py index 7bd1523b5..3eae2fffe 100755 --- a/utils/release/findRegressions-simple.py +++ b/utils/release/findRegressions-simple.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import re, string, sys, os, time, math diff --git a/utils/shuffle_fuzz.py b/utils/shuffle_fuzz.py index 2d86cc0a2..54e7040fc 100755 --- a/utils/shuffle_fuzz.py +++ b/utils/shuffle_fuzz.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A shuffle vector fuzz tester. diff --git a/utils/shuffle_select_fuzz_tester.py b/utils/shuffle_select_fuzz_tester.py index 6b2f94a69..48b9724e4 100644 --- a/utils/shuffle_select_fuzz_tester.py +++ b/utils/shuffle_select_fuzz_tester.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A shuffle-select vector fuzz tester. diff --git a/utils/sort_includes.py b/utils/sort_includes.py index 70bfdedfc..450cd0e92 100755 --- a/utils/sort_includes.py +++ b/utils/sort_includes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Script to sort the top-most block of #include lines. diff --git a/utils/unicode-case-fold.py b/utils/unicode-case-fold.py index ad8265ba7..7a8c5fdc9 100755 --- a/utils/unicode-case-fold.py +++ b/utils/unicode-case-fold.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Unicode case folding database conversion utility diff --git a/utils/update_analyze_test_checks.py b/utils/update_analyze_test_checks.py index 64e64e090..9f3a79b0f 100755 --- a/utils/update_analyze_test_checks.py +++ b/utils/update_analyze_test_checks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A script to generate FileCheck statements for 'opt' analysis tests. diff --git a/utils/update_llc_test_checks.py b/utils/update_llc_test_checks.py index 960fee232..1434bd573 100755 --- a/utils/update_llc_test_checks.py +++ b/utils/update_llc_test_checks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A test case update script. diff --git a/utils/update_mca_test_checks.py b/utils/update_mca_test_checks.py index 06fd655ab..6695765fd 100755 --- a/utils/update_mca_test_checks.py +++ b/utils/update_mca_test_checks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A test case update script. diff --git a/utils/update_mir_test_checks.py b/utils/update_mir_test_checks.py index 56d236de2..7fefe8e23 100755 --- a/utils/update_mir_test_checks.py +++ b/utils/update_mir_test_checks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Updates FileCheck checks in MIR tests. diff --git a/utils/update_test_checks.py b/utils/update_test_checks.py index 6d0bf0479..a365a89e2 100755 --- a/utils/update_test_checks.py +++ b/utils/update_test_checks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A script to generate FileCheck statements for 'opt' regression tests. diff --git a/utils/wciia.py b/utils/wciia.py index 4269db2de..30c3846b8 100755 --- a/utils/wciia.py +++ b/utils/wciia.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ wciia - Whose Code Is It Anyway -- 2.30.2