Index: clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py =================================================================== --- clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py +++ clang-tools-extra/clang-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 -*-=# # Index: clang-tools-extra/clang-tidy/add_new_check.py =================================================================== --- clang-tools-extra/clang-tidy/add_new_check.py +++ 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 -*--===# # Index: clang-tools-extra/clang-tidy/rename_check.py =================================================================== --- clang-tools-extra/clang-tidy/rename_check.py +++ 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 -*--===# # Index: clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py =================================================================== --- clang-tools-extra/clang-tidy/tool/clang-tidy-diff.py +++ 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 -*--===# # Index: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py =================================================================== --- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py +++ 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 -*--===# # Index: clang-tools-extra/clangd/include-mapping/cppreference_parser.py =================================================================== --- clang-tools-extra/clangd/include-mapping/cppreference_parser.py +++ clang-tools-extra/clangd/include-mapping/cppreference_parser.py @@ -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: clang-tools-extra/clangd/include-mapping/gen_std.py =================================================================== --- clang-tools-extra/clangd/include-mapping/gen_std.py +++ clang-tools-extra/clangd/include-mapping/gen_std.py @@ -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: clang-tools-extra/clangd/include-mapping/test.py =================================================================== --- clang-tools-extra/clangd/include-mapping/test.py +++ clang-tools-extra/clangd/include-mapping/test.py @@ -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: clang-tools-extra/test/clang-tidy/check_clang_tidy.py =================================================================== --- clang-tools-extra/test/clang-tidy/check_clang_tidy.py +++ 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 -*--===# # Index: clang/bindings/python/examples/cindex/cindex-dump.py =================================================================== --- clang/bindings/python/examples/cindex/cindex-dump.py +++ 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 -*--===# # Index: clang/bindings/python/examples/cindex/cindex-includes.py =================================================================== --- clang/bindings/python/examples/cindex/cindex-includes.py +++ 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 -*--===# # Index: clang/docs/tools/dump_ast_matchers.py =================================================================== --- clang/docs/tools/dump_ast_matchers.py +++ 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. Index: clang/docs/tools/dump_format_style.py =================================================================== --- clang/docs/tools/dump_format_style.py +++ 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. Index: clang/test/AST/gen_ast_dump_json_test.py =================================================================== --- clang/test/AST/gen_ast_dump_json_test.py +++ clang/test/AST/gen_ast_dump_json_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function from collections import OrderedDict Index: clang/test/Analysis/check-analyzer-fixit.py =================================================================== --- clang/test/Analysis/check-analyzer-fixit.py +++ clang/test/Analysis/check-analyzer-fixit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- check-analyzer-fixit.py - Static Analyzer test helper ---*- python -*-===# # Index: clang/test/Driver/check-time-trace-sections.py =================================================================== --- clang/test/Driver/check-time-trace-sections.py +++ clang/test/Driver/check-time-trace-sections.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import json, sys Index: clang/tools/clang-format/clang-format-diff.py =================================================================== --- clang/tools/clang-format/clang-format-diff.py +++ 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 -*--===# # Index: clang/tools/clang-format/git-clang-format =================================================================== --- clang/tools/clang-format/git-clang-format +++ 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 -*--===# # Index: clang/tools/scan-build-py/bin/analyze-build =================================================================== --- clang/tools/scan-build-py/bin/analyze-build +++ clang/tools/scan-build-py/bin/analyze-build @@ -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: clang/tools/scan-build-py/bin/analyze-c++ =================================================================== --- clang/tools/scan-build-py/bin/analyze-c++ +++ clang/tools/scan-build-py/bin/analyze-c++ @@ -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: clang/tools/scan-build-py/bin/analyze-cc =================================================================== --- clang/tools/scan-build-py/bin/analyze-cc +++ clang/tools/scan-build-py/bin/analyze-cc @@ -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: clang/tools/scan-build-py/bin/intercept-build =================================================================== --- clang/tools/scan-build-py/bin/intercept-build +++ clang/tools/scan-build-py/bin/intercept-build @@ -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: clang/tools/scan-build-py/bin/intercept-c++ =================================================================== --- clang/tools/scan-build-py/bin/intercept-c++ +++ clang/tools/scan-build-py/bin/intercept-c++ @@ -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: clang/tools/scan-build-py/bin/intercept-cc =================================================================== --- clang/tools/scan-build-py/bin/intercept-cc +++ clang/tools/scan-build-py/bin/intercept-cc @@ -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: clang/tools/scan-build-py/bin/scan-build =================================================================== --- clang/tools/scan-build-py/bin/scan-build +++ clang/tools/scan-build-py/bin/scan-build @@ -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: clang/tools/scan-build/bin/set-xcode-analyzer =================================================================== --- clang/tools/scan-build/bin/set-xcode-analyzer +++ clang/tools/scan-build/bin/set-xcode-analyzer @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # [PR 11661] Note that we hardwire to /usr/bin/python because we # want to the use the system version of Python on Mac OS X. Index: clang/tools/scan-view/bin/scan-view =================================================================== --- clang/tools/scan-view/bin/scan-view +++ clang/tools/scan-view/bin/scan-view @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: clang/tools/scan-view/share/Reporter.py =================================================================== --- clang/tools/scan-view/share/Reporter.py +++ 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.""" Index: clang/tools/scan-view/share/startfile.py =================================================================== --- clang/tools/scan-view/share/startfile.py +++ 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 Index: clang/utils/ABITest/ABITestGen.py =================================================================== --- clang/utils/ABITest/ABITestGen.py +++ 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 Index: clang/utils/CIndex/completion_logger_server.py =================================================================== --- clang/utils/CIndex/completion_logger_server.py +++ 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 * Index: clang/utils/CaptureCmd =================================================================== --- clang/utils/CaptureCmd +++ 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. Index: clang/utils/CmpDriver =================================================================== --- clang/utils/CmpDriver +++ 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 Index: clang/utils/FindSpecRefs =================================================================== --- clang/utils/FindSpecRefs +++ clang/utils/FindSpecRefs @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import re Index: clang/utils/FuzzTest =================================================================== --- clang/utils/FuzzTest +++ 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. Index: clang/utils/TestUtils/deep-stack.py =================================================================== --- clang/utils/TestUtils/deep-stack.py +++ 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): Index: clang/utils/analyzer/CmpRuns.py =================================================================== --- clang/utils/analyzer/CmpRuns.py +++ 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 Index: clang/utils/analyzer/SATestAdd.py =================================================================== --- clang/utils/analyzer/SATestAdd.py +++ 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 Index: clang/utils/analyzer/SATestBuild.py =================================================================== --- clang/utils/analyzer/SATestBuild.py +++ clang/utils/analyzer/SATestBuild.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Static Analyzer qualification infrastructure. Index: clang/utils/analyzer/SATestUpdateDiffs.py =================================================================== --- clang/utils/analyzer/SATestUpdateDiffs.py +++ clang/utils/analyzer/SATestUpdateDiffs.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Update reference results for static analyzer. Index: clang/utils/analyzer/SumTimerInfo.py =================================================================== --- clang/utils/analyzer/SumTimerInfo.py +++ 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. Index: clang/utils/analyzer/exploded-graph-rewriter.py =================================================================== --- clang/utils/analyzer/exploded-graph-rewriter.py +++ clang/utils/analyzer/exploded-graph-rewriter.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # #===- exploded-graph-rewriter.py - ExplodedGraph dump tool -----*- python -*--# # Index: clang/utils/check_cfc/check_cfc.py =================================================================== --- clang/utils/check_cfc/check_cfc.py +++ 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 Index: clang/utils/check_cfc/obj_diff.py =================================================================== --- clang/utils/check_cfc/obj_diff.py +++ 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 Index: clang/utils/check_cfc/test_check_cfc.py =================================================================== --- clang/utils/check_cfc/test_check_cfc.py +++ 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.""" Index: clang/utils/clangdiag.py =================================================================== --- clang/utils/clangdiag.py +++ clang/utils/clangdiag.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: clang/utils/creduce-clang-crash.py =================================================================== --- clang/utils/creduce-clang-crash.py +++ clang/utils/creduce-clang-crash.py @@ -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: clang/utils/hmaptool/hmaptool =================================================================== --- clang/utils/hmaptool/hmaptool +++ 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 Index: clang/utils/modfuzz.py =================================================================== --- clang/utils/modfuzz.py +++ 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. Index: clang/utils/token-delta.py =================================================================== --- clang/utils/token-delta.py +++ 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 Index: clang/www/builtins.py =================================================================== --- clang/www/builtins.py +++ clang/www/builtins.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys, fileinput Index: clang/www/make_cxx_dr_status =================================================================== --- clang/www/make_cxx_dr_status +++ 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' Index: compiler-rt/lib/asan/scripts/asan_symbolize.py =================================================================== --- compiler-rt/lib/asan/scripts/asan_symbolize.py +++ 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 -----------------------------------===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: compiler-rt/lib/dfsan/scripts/build-libc-list.py =================================================================== --- compiler-rt/lib/dfsan/scripts/build-libc-list.py +++ 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 ---------------------------------===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py =================================================================== --- compiler-rt/lib/fuzzer/scripts/unbalanced_allocs.py +++ 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 ------------------------------===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: compiler-rt/lib/hwasan/scripts/hwasan_symbolize =================================================================== --- compiler-rt/lib/hwasan/scripts/hwasan_symbolize +++ compiler-rt/lib/hwasan/scripts/hwasan_symbolize @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 #===- lib/hwasan/scripts/hwasan_symbolize ----------------------------------===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: compiler-rt/lib/sanitizer_common/scripts/cpplint.py =================================================================== --- compiler-rt/lib/sanitizer_common/scripts/cpplint.py +++ 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. # Index: compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py =================================================================== --- compiler-rt/lib/sanitizer_common/scripts/gen_dynamic_list.py +++ 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 ---------------------===# # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: compiler-rt/lib/sanitizer_common/scripts/litlint.py =================================================================== --- compiler-rt/lib/sanitizer_common/scripts/litlint.py +++ compiler-rt/lib/sanitizer_common/scripts/litlint.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # litlint # Index: compiler-rt/lib/sanitizer_common/scripts/litlint_test.py =================================================================== --- compiler-rt/lib/sanitizer_common/scripts/litlint_test.py +++ compiler-rt/lib/sanitizer_common/scripts/litlint_test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Tests for litlint.py # Index: compiler-rt/lib/sanitizer_common/scripts/sancov.py =================================================================== --- compiler-rt/lib/sanitizer_common/scripts/sancov.py +++ 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 Index: compiler-rt/test/sanitizer_common/android_commands/android_compile.py =================================================================== --- compiler-rt/test/sanitizer_common/android_commands/android_compile.py +++ compiler-rt/test/sanitizer_common/android_commands/android_compile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import os, sys, subprocess from android_common import * Index: compiler-rt/test/sanitizer_common/android_commands/android_run.py =================================================================== --- compiler-rt/test/sanitizer_common/android_commands/android_run.py +++ compiler-rt/test/sanitizer_common/android_commands/android_run.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import os, signal, sys, subprocess, tempfile from android_common import * Index: compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py =================================================================== --- compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py +++ compiler-rt/test/sanitizer_common/ios_commands/iossim_compile.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import os, sys, subprocess Index: compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py =================================================================== --- compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py +++ compiler-rt/test/sanitizer_common/ios_commands/iossim_env.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import os, sys, subprocess Index: compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py =================================================================== --- compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py +++ compiler-rt/test/sanitizer_common/ios_commands/iossim_prepare.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import json import os Index: compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py =================================================================== --- compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py +++ compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import glob, os, pipes, sys, subprocess Index: debuginfo-tests/dexter/dexter.py =================================================================== --- debuginfo-tests/dexter/dexter.py +++ debuginfo-tests/dexter/dexter.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # DExTer : Debugging Experience Tester # ~~~~~~ ~ ~~ ~ ~~ # Index: debuginfo-tests/llgdb-tests/llgdb.py =================================================================== --- debuginfo-tests/llgdb-tests/llgdb.py +++ debuginfo-tests/llgdb-tests/llgdb.py @@ -1,4 +1,4 @@ -#!/bin/env python +#!/bin/env python3 """ A gdb-compatible frontend for lldb that implements just enough commands to run the tests in the debuginfo-tests repository with lldb. Index: debuginfo-tests/llgdb-tests/test_debuginfo.pl =================================================================== --- debuginfo-tests/llgdb-tests/test_debuginfo.pl +++ debuginfo-tests/llgdb-tests/test_debuginfo.pl @@ -57,7 +57,7 @@ if ($use_lldb) { my $path = dirname(Cwd::abs_path($0)); # At least on darwin, LLDB needs te system python. - $my_debugger = "/usr/bin/python $path/llgdb.py"; + $my_debugger = "/usr/bin/python3 $path/llgdb.py"; } else { $my_debugger = "gdb"; } Index: libc/AOR_v20.02/math/tools/plot.py =================================================================== --- libc/AOR_v20.02/math/tools/plot.py +++ libc/AOR_v20.02/math/tools/plot.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # ULP error plot tool. # Index: libcxx/utils/cat_files.py =================================================================== --- libcxx/utils/cat_files.py +++ libcxx/utils/cat_files.py @@ -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: libcxx/utils/generate_feature_test_macro_components.py =================================================================== --- libcxx/utils/generate_feature_test_macro_components.py +++ libcxx/utils/generate_feature_test_macro_components.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import tempfile Index: libcxx/utils/google-benchmark/mingw.py =================================================================== --- libcxx/utils/google-benchmark/mingw.py +++ libcxx/utils/google-benchmark/mingw.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # encoding: utf-8 import argparse Index: libcxx/utils/google-benchmark/tools/compare.py =================================================================== --- libcxx/utils/google-benchmark/tools/compare.py +++ libcxx/utils/google-benchmark/tools/compare.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import unittest """ Index: libcxx/utils/google-benchmark/tools/strip_asm.py =================================================================== --- libcxx/utils/google-benchmark/tools/strip_asm.py +++ 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 Index: libcxx/utils/graph_header_deps.py =================================================================== --- libcxx/utils/graph_header_deps.py +++ libcxx/utils/graph_header_deps.py @@ -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: libcxx/utils/merge_archives.py =================================================================== --- libcxx/utils/merge_archives.py +++ libcxx/utils/merge_archives.py @@ -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: libcxx/utils/sym_diff.py =================================================================== --- libcxx/utils/sym_diff.py +++ libcxx/utils/sym_diff.py @@ -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: libcxx/utils/sym_extract.py =================================================================== --- libcxx/utils/sym_extract.py +++ libcxx/utils/sym_extract.py @@ -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: libcxx/utils/sym_match.py =================================================================== --- libcxx/utils/sym_match.py +++ libcxx/utils/sym_match.py @@ -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: lld/utils/benchmark.py =================================================================== --- lld/utils/benchmark.py +++ lld/utils/benchmark.py @@ -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: lldb/docs/use/python-reference.rst =================================================================== --- lldb/docs/use/python-reference.rst +++ lldb/docs/use/python-reference.rst @@ -595,7 +595,7 @@ :: - #!/usr/bin/python + #!/usr/bin/python3 import lldb import commands @@ -703,7 +703,7 @@ :: - #!/usr/bin/python + #!/usr/bin/python3 import lldb import os Index: lldb/examples/darwin/heap_find/heap.py =================================================================== --- lldb/examples/darwin/heap_find/heap.py +++ lldb/examples/darwin/heap_find/heap.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # This module is designed to live inside the "lldb" python package Index: lldb/examples/python/armv7_cortex_m_target_defintion.py =================================================================== --- lldb/examples/python/armv7_cortex_m_target_defintion.py +++ lldb/examples/python/armv7_cortex_m_target_defintion.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #===-- armv7_cortex_m_target_definition.py.py ------------------*- C++ -*-===// # # The LLVM Compiler Infrastructure Index: lldb/examples/python/bsd.py =================================================================== --- lldb/examples/python/bsd.py +++ lldb/examples/python/bsd.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function import cmd Index: lldb/examples/python/cmdtemplate.py =================================================================== --- lldb/examples/python/cmdtemplate.py +++ lldb/examples/python/cmdtemplate.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # --------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/crashlog.py =================================================================== --- lldb/examples/python/crashlog.py +++ lldb/examples/python/crashlog.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/delta.py =================================================================== --- lldb/examples/python/delta.py +++ lldb/examples/python/delta.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # This module will enable GDB remote packet logging when the Index: lldb/examples/python/disasm-stress-test.py =================================================================== --- lldb/examples/python/disasm-stress-test.py +++ lldb/examples/python/disasm-stress-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import argparse import datetime Index: lldb/examples/python/disasm.py =================================================================== --- lldb/examples/python/disasm.py +++ lldb/examples/python/disasm.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/file_extract.py =================================================================== --- lldb/examples/python/file_extract.py +++ lldb/examples/python/file_extract.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import string import struct Index: lldb/examples/python/gdbremote.py =================================================================== --- lldb/examples/python/gdbremote.py +++ lldb/examples/python/gdbremote.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # This module will enable GDB remote packet logging when the Index: lldb/examples/python/globals.py =================================================================== --- lldb/examples/python/globals.py +++ lldb/examples/python/globals.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # For the shells csh, tcsh: Index: lldb/examples/python/in_call_stack.py =================================================================== --- lldb/examples/python/in_call_stack.py +++ lldb/examples/python/in_call_stack.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 def __lldb_init_module(debugger, internal_dict): Index: lldb/examples/python/lldb_module_utils.py =================================================================== --- lldb/examples/python/lldb_module_utils.py +++ lldb/examples/python/lldb_module_utils.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function import lldb Index: lldb/examples/python/lldbtk.py =================================================================== --- lldb/examples/python/lldbtk.py +++ lldb/examples/python/lldbtk.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function import lldb Index: lldb/examples/python/mach_o.py =================================================================== --- lldb/examples/python/mach_o.py +++ lldb/examples/python/mach_o.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function import cmd Index: lldb/examples/python/memory.py =================================================================== --- lldb/examples/python/memory.py +++ lldb/examples/python/memory.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/operating_system.py =================================================================== --- lldb/examples/python/operating_system.py +++ lldb/examples/python/operating_system.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import lldb import struct Index: lldb/examples/python/performance.py =================================================================== --- lldb/examples/python/performance.py +++ lldb/examples/python/performance.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/process_events.py =================================================================== --- lldb/examples/python/process_events.py +++ lldb/examples/python/process_events.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/sbvalue.py =================================================================== --- lldb/examples/python/sbvalue.py +++ lldb/examples/python/sbvalue.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import lldb Index: lldb/examples/python/shadow.py =================================================================== --- lldb/examples/python/shadow.py +++ lldb/examples/python/shadow.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function import lldb Index: lldb/examples/python/sources.py =================================================================== --- lldb/examples/python/sources.py +++ lldb/examples/python/sources.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function import lldb Index: lldb/examples/python/stacks.py =================================================================== --- lldb/examples/python/stacks.py +++ lldb/examples/python/stacks.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function import lldb import optparse Index: lldb/examples/python/symbolication.py =================================================================== --- lldb/examples/python/symbolication.py +++ lldb/examples/python/symbolication.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/types.py =================================================================== --- lldb/examples/python/types.py +++ lldb/examples/python/types.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #---------------------------------------------------------------------- # Be sure to add the python path that points to the LLDB shared library. Index: lldb/examples/python/x86_64_linux_target_definition.py =================================================================== --- lldb/examples/python/x86_64_linux_target_definition.py +++ lldb/examples/python/x86_64_linux_target_definition.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #===-- x86_64_linux_target_definition.py -----------------------------*- C++ -*-===// # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: lldb/examples/python/x86_64_qemu_target_definition.py =================================================================== --- lldb/examples/python/x86_64_qemu_target_definition.py +++ lldb/examples/python/x86_64_qemu_target_definition.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #===-- x86_64_qemu_target_definition.py -----------------------------*- C++ -*-===// # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: lldb/examples/python/x86_64_target_definition.py =================================================================== --- lldb/examples/python/x86_64_target_definition.py +++ lldb/examples/python/x86_64_target_definition.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 #===-- x86_64_target_definition.py -----------------------------*- C++ -*-===// # # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. Index: lldb/packages/Python/lldbsuite/test/bench.py =================================================================== --- lldb/packages/Python/lldbsuite/test/bench.py +++ 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 Index: lldb/packages/Python/lldbsuite/test/redo.py =================================================================== --- lldb/packages/Python/lldbsuite/test/redo.py +++ 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. Index: lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py =================================================================== --- lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/vscode.py +++ 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 Index: lldb/scripts/analyze-project-deps.py =================================================================== --- lldb/scripts/analyze-project-deps.py +++ lldb/scripts/analyze-project-deps.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 import argparse import itertools Index: lldb/scripts/verify_api.py =================================================================== --- lldb/scripts/verify_api.py +++ lldb/scripts/verify_api.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import subprocess import optparse Index: lldb/test/API/dotest.py =================================================================== --- lldb/test/API/dotest.py +++ lldb/test/API/dotest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 if __name__ == "__main__": import use_lldb_suite Index: lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py =================================================================== --- lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py +++ lldb/test/API/functionalities/plugins/python_os_plugin/operating_system.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import lldb import struct Index: lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py =================================================================== --- lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py +++ lldb/test/API/functionalities/plugins/python_os_plugin/operating_system2.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import lldb import struct Index: lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py =================================================================== --- lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py +++ lldb/test/API/functionalities/plugins/python_os_plugin/stepping_plugin_threads/operating_system.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import lldb import struct Index: lldb/test/API/issue_verification/disable.py =================================================================== --- lldb/test/API/issue_verification/disable.py +++ lldb/test/API/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 Index: lldb/test/API/issue_verification/enable.py =================================================================== --- lldb/test/API/issue_verification/enable.py +++ lldb/test/API/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 Index: lldb/test/API/test_runner/test/inferior.py =================================================================== --- lldb/test/API/test_runner/test/inferior.py +++ lldb/test/API/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 Index: lldb/test/API/test_runner/test/test_process_control.py =================================================================== --- lldb/test/API/test_runner/test/test_process_control.py +++ lldb/test/API/test_runner/test/test_process_control.py @@ -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: lldb/test/Shell/Quit/expect_exit_code.py =================================================================== --- lldb/test/Shell/Quit/expect_exit_code.py +++ lldb/test/Shell/Quit/expect_exit_code.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import subprocess import sys Index: lldb/test/Shell/helper/build.py =================================================================== --- lldb/test/Shell/helper/build.py +++ lldb/test/Shell/helper/build.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 from __future__ import print_function Index: lldb/third_party/Python/module/pexpect-4.6/pexpect/FSM.py =================================================================== --- lldb/third_party/Python/module/pexpect-4.6/pexpect/FSM.py +++ lldb/third_party/Python/module/pexpect-4.6/pexpect/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 Index: lldb/third_party/Python/module/progress/progress.py =================================================================== --- lldb/third_party/Python/module/progress/progress.py +++ lldb/third_party/Python/module/progress/progress.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function Index: lldb/utils/lldb-repro/lldb-repro.py =================================================================== --- lldb/utils/lldb-repro/lldb-repro.py +++ lldb/utils/lldb-repro/lldb-repro.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """lldb-repro lldb-repro is a utility to transparently capture and replay debugger sessions Index: lldb/utils/lui/lui.py =================================================================== --- lldb/utils/lui/lui.py +++ lldb/utils/lui/lui.py @@ -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: lldb/utils/lui/sandbox.py =================================================================== --- lldb/utils/lui/sandbox.py +++ lldb/utils/lui/sandbox.py @@ -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: lldb/utils/test/disasm.py =================================================================== --- lldb/utils/test/disasm.py +++ 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, Index: lldb/utils/test/lldb-disasm.py =================================================================== --- lldb/utils/test/lldb-disasm.py +++ 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. Index: lldb/utils/test/llvm-mc-shell.py =================================================================== --- lldb/utils/test/llvm-mc-shell.py +++ lldb/utils/test/llvm-mc-shell.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Run llvm-mc interactively. Index: lldb/utils/test/ras.py =================================================================== --- lldb/utils/test/ras.py +++ 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. Index: lldb/utils/test/run-dis.py =================================================================== --- lldb/utils/test/run-dis.py +++ 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 Index: lldb/utils/test/run-until-faulted.py =================================================================== --- lldb/utils/test/run-until-faulted.py +++ 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. Index: llvm/examples/Kaleidoscope/MCJIT/cached/genk-timing.py =================================================================== --- llvm/examples/Kaleidoscope/MCJIT/cached/genk-timing.py +++ llvm/examples/Kaleidoscope/MCJIT/cached/genk-timing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/examples/Kaleidoscope/MCJIT/cached/split-lib.py =================================================================== --- llvm/examples/Kaleidoscope/MCJIT/cached/split-lib.py +++ llvm/examples/Kaleidoscope/MCJIT/cached/split-lib.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/examples/Kaleidoscope/MCJIT/complete/genk-timing.py =================================================================== --- llvm/examples/Kaleidoscope/MCJIT/complete/genk-timing.py +++ llvm/examples/Kaleidoscope/MCJIT/complete/genk-timing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/examples/Kaleidoscope/MCJIT/complete/split-lib.py =================================================================== --- llvm/examples/Kaleidoscope/MCJIT/complete/split-lib.py +++ llvm/examples/Kaleidoscope/MCJIT/complete/split-lib.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py =================================================================== --- llvm/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py +++ llvm/examples/Kaleidoscope/MCJIT/lazy/genk-timing.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/runtimes/llvm-strip-link.in =================================================================== --- llvm/runtimes/llvm-strip-link.in +++ llvm/runtimes/llvm-strip-link.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os Index: llvm/test/BugPoint/compile-custom.ll.py =================================================================== --- llvm/test/BugPoint/compile-custom.ll.py +++ llvm/test/BugPoint/compile-custom.ll.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/test/Other/opt-bisect-helper.py =================================================================== --- llvm/test/Other/opt-bisect-helper.py +++ llvm/test/Other/opt-bisect-helper.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/test/Reduce/Inputs/remove-global-vars.py =================================================================== --- llvm/test/Reduce/Inputs/remove-global-vars.py +++ llvm/test/Reduce/Inputs/remove-global-vars.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys Index: llvm/test/TableGen/JSON-check.py =================================================================== --- llvm/test/TableGen/JSON-check.py +++ llvm/test/TableGen/JSON-check.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys import subprocess Index: llvm/tools/opt-viewer/opt-diff.py =================================================================== --- llvm/tools/opt-viewer/opt-diff.py +++ llvm/tools/opt-viewer/opt-diff.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/tools/opt-viewer/opt-stats.py =================================================================== --- llvm/tools/opt-viewer/opt-stats.py +++ llvm/tools/opt-viewer/opt-stats.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/tools/opt-viewer/opt-viewer.py =================================================================== --- llvm/tools/opt-viewer/opt-viewer.py +++ llvm/tools/opt-viewer/opt-viewer.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/tools/opt-viewer/optrecord.py =================================================================== --- llvm/tools/opt-viewer/optrecord.py +++ llvm/tools/opt-viewer/optrecord.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/utils/DSAclean.py =================================================================== --- llvm/utils/DSAclean.py +++ llvm/utils/DSAclean.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/python3 #changelog: #10/13/2005b: replaced the # in tmp(.#*)* with alphanumeric and _, this will then remove Index: llvm/utils/DSAextract.py =================================================================== --- llvm/utils/DSAextract.py +++ llvm/utils/DSAextract.py @@ -1,4 +1,4 @@ -#! /usr/bin/python +#!/usr/bin/python3 #this is a script to extract given named nodes from a dot file, with #the associated edges. An edge is kept iff for edge x -> y Index: llvm/utils/Misc/zkill =================================================================== --- llvm/utils/Misc/zkill +++ llvm/utils/Misc/zkill @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import re Index: llvm/utils/Reviewing/find_interesting_reviews.py =================================================================== --- llvm/utils/Reviewing/find_interesting_reviews.py +++ llvm/utils/Reviewing/find_interesting_reviews.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/utils/Target/ARM/analyze-match-table.py =================================================================== --- llvm/utils/Target/ARM/analyze-match-table.py +++ llvm/utils/Target/ARM/analyze-match-table.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/utils/abtest.py =================================================================== --- llvm/utils/abtest.py +++ llvm/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 Index: llvm/utils/benchmark/mingw.py =================================================================== --- llvm/utils/benchmark/mingw.py +++ llvm/utils/benchmark/mingw.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 # encoding: utf-8 import argparse Index: llvm/utils/benchmark/tools/compare.py =================================================================== --- llvm/utils/benchmark/tools/compare.py +++ llvm/utils/benchmark/tools/compare.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ compare.py - versatile benchmark output compare tool Index: llvm/utils/benchmark/tools/strip_asm.py =================================================================== --- llvm/utils/benchmark/tools/strip_asm.py +++ llvm/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 Index: llvm/utils/bisect =================================================================== --- llvm/utils/bisect +++ llvm/utils/bisect @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # The way you use this is you create a script that takes in as its first # argument a count. The script passes into LLVM the count via a command Index: llvm/utils/bisect-skip-count =================================================================== --- llvm/utils/bisect-skip-count +++ llvm/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 # Index: llvm/utils/bugpoint_gisel_reducer.py =================================================================== --- llvm/utils/bugpoint_gisel_reducer.py +++ llvm/utils/bugpoint_gisel_reducer.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Reduces GlobalISel failures. Index: llvm/utils/chunk-print-before-all.py =================================================================== --- llvm/utils/chunk-print-before-all.py +++ llvm/utils/chunk-print-before-all.py @@ -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: llvm/utils/clang-parse-diagnostics-file =================================================================== --- llvm/utils/clang-parse-diagnostics-file +++ llvm/utils/clang-parse-diagnostics-file @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import plistlib Index: llvm/utils/create_ladder_graph.py =================================================================== --- llvm/utils/create_ladder_graph.py +++ llvm/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 Index: llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py =================================================================== --- llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py +++ llvm/utils/docker/scripts/llvm_checksum/llvm_checksum.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 """ A small program to compute checksums of LLVM checkout. """ from __future__ import absolute_import Index: llvm/utils/extract_symbols.py =================================================================== --- llvm/utils/extract_symbols.py +++ llvm/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 Index: llvm/utils/extract_vplan.py =================================================================== --- llvm/utils/extract_vplan.py +++ llvm/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 Index: llvm/utils/git-svn/git-llvm =================================================================== --- llvm/utils/git-svn/git-llvm +++ llvm/utils/git-svn/git-llvm @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # ======- git-llvm - LLVM Git Help Integration ---------*- python -*--========# # Index: llvm/utils/gn/build/run_tablegen.py =================================================================== --- llvm/utils/gn/build/run_tablegen.py +++ llvm/utils/gn/build/run_tablegen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Runs tablegen.""" import subprocess Index: llvm/utils/gn/build/symlink_or_copy.py =================================================================== --- llvm/utils/gn/build/symlink_or_copy.py +++ llvm/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. Index: llvm/utils/gn/build/sync_source_lists_from_cmake.py =================================================================== --- llvm/utils/gn/build/sync_source_lists_from_cmake.py +++ llvm/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. Index: llvm/utils/gn/build/write_cmake_config.py =================================================================== --- llvm/utils/gn/build/write_cmake_config.py +++ llvm/utils/gn/build/write_cmake_config.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 r"""Emulates the bits of CMake's configure_file() function needed in LLVM. The CMake build uses configure_file() for several things. This emulates that Index: llvm/utils/gn/build/write_vcsrevision.py =================================================================== --- llvm/utils/gn/build/write_vcsrevision.py +++ llvm/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.""" Index: llvm/utils/gn/get.py =================================================================== --- llvm/utils/gn/get.py +++ llvm/utils/gn/get.py @@ -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: llvm/utils/gn/gn.py =================================================================== --- llvm/utils/gn/gn.py +++ llvm/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. Index: llvm/utils/gn/secondary/libcxx/utils/gen_link_script.py =================================================================== --- llvm/utils/gn/secondary/libcxx/utils/gen_link_script.py +++ llvm/utils/gn/secondary/libcxx/utils/gen_link_script.py @@ -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: llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py =================================================================== --- llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py +++ llvm/utils/gn/secondary/llvm/include/llvm/Support/write_extension_def.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import argparse Index: llvm/utils/indirect_calls.py =================================================================== --- llvm/utils/indirect_calls.py +++ llvm/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. Index: llvm/utils/lint/common_lint.py =================================================================== --- llvm/utils/lint/common_lint.py +++ llvm/utils/lint/common_lint.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Common lint functions applicable to multiple types of files. Index: llvm/utils/lint/cpp_lint.py =================================================================== --- llvm/utils/lint/cpp_lint.py +++ llvm/utils/lint/cpp_lint.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Checks C++ files to make sure they conform to LLVM standards, as specified in # http://llvm.org/docs/CodingStandards.html . Index: llvm/utils/lint/generic_lint.py =================================================================== --- llvm/utils/lint/generic_lint.py +++ llvm/utils/lint/generic_lint.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Checks files to make sure they conform to LLVM standards which can be applied # to any programming language: at present, line length and trailing whitespace. Index: llvm/utils/lit/lit.py =================================================================== --- llvm/utils/lit/lit.py +++ llvm/utils/lit/lit.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from lit.main import main Index: llvm/utils/lit/lit/ProgressBar.py =================================================================== --- llvm/utils/lit/lit/ProgressBar.py +++ llvm/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. Index: llvm/utils/lit/tests/Inputs/fake-externals/cd =================================================================== --- llvm/utils/lit/tests/Inputs/fake-externals/cd +++ llvm/utils/lit/tests/Inputs/fake-externals/cd @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import fake_external Index: llvm/utils/lit/tests/Inputs/fake-externals/diff =================================================================== --- llvm/utils/lit/tests/Inputs/fake-externals/diff +++ llvm/utils/lit/tests/Inputs/fake-externals/diff @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import fake_external Index: llvm/utils/lit/tests/Inputs/fake-externals/env =================================================================== --- llvm/utils/lit/tests/Inputs/fake-externals/env +++ llvm/utils/lit/tests/Inputs/fake-externals/env @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import fake_external Index: llvm/utils/lit/tests/Inputs/fake-externals/export =================================================================== --- llvm/utils/lit/tests/Inputs/fake-externals/export +++ llvm/utils/lit/tests/Inputs/fake-externals/export @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import fake_external Index: llvm/utils/lit/tests/Inputs/fake-externals/mkdir =================================================================== --- llvm/utils/lit/tests/Inputs/fake-externals/mkdir +++ llvm/utils/lit/tests/Inputs/fake-externals/mkdir @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import fake_external Index: llvm/utils/lit/tests/Inputs/fake-externals/rm =================================================================== --- llvm/utils/lit/tests/Inputs/fake-externals/rm +++ llvm/utils/lit/tests/Inputs/fake-externals/rm @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import fake_external Index: llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py =================================================================== --- llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py +++ llvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys Index: llvm/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py =================================================================== --- llvm/utils/lit/tests/Inputs/googletest-timeout/DummySubDir/OneTest.py +++ llvm/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 Index: llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py =================================================================== --- llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py +++ llvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys Index: llvm/utils/lit/tests/Inputs/shtest-env/print_environment.py =================================================================== --- llvm/utils/lit/tests/Inputs/shtest-env/print_environment.py +++ llvm/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_function import os Index: llvm/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.py =================================================================== --- llvm/utils/lit/tests/Inputs/shtest-format/external_shell/write-bad-encoding.py +++ llvm/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 Index: llvm/utils/lit/tests/Inputs/shtest-not/fail.py =================================================================== --- llvm/utils/lit/tests/Inputs/shtest-not/fail.py +++ llvm/utils/lit/tests/Inputs/shtest-not/fail.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import print_environment import sys Index: llvm/utils/lit/tests/Inputs/shtest-not/pass.py =================================================================== --- llvm/utils/lit/tests/Inputs/shtest-not/pass.py +++ llvm/utils/lit/tests/Inputs/shtest-not/pass.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import print_environment Index: llvm/utils/lit/tests/Inputs/shtest-shell/check_args.py =================================================================== --- llvm/utils/lit/tests/Inputs/shtest-shell/check_args.py +++ llvm/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 Index: llvm/utils/lit/tests/Inputs/shtest-shell/check_path.py =================================================================== --- llvm/utils/lit/tests/Inputs/shtest-shell/check_path.py +++ llvm/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 Index: llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py =================================================================== --- llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py +++ llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stderr.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import sys Index: llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py =================================================================== --- llvm/utils/lit/tests/Inputs/shtest-shell/write-to-stdout-and-stderr.py +++ llvm/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 Index: llvm/utils/llvm-build/llvm-build =================================================================== --- llvm/utils/llvm-build/llvm-build +++ llvm/utils/llvm-build/llvm-build @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import llvmbuild Index: llvm/utils/llvm-gisel-cov.py =================================================================== --- llvm/utils/llvm-gisel-cov.py +++ llvm/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. Index: llvm/utils/llvm-lit/llvm-lit.in =================================================================== --- llvm/utils/llvm-lit/llvm-lit.in +++ llvm/utils/llvm-lit/llvm-lit.in @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os Index: llvm/utils/llvm-locstats/llvm-locstats.py =================================================================== --- llvm/utils/llvm-locstats/llvm-locstats.py +++ llvm/utils/llvm-locstats/llvm-locstats.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # This is a tool that works like debug location coverage calculator. # It parses the llvm-dwarfdump --statistics output by reporting it Index: llvm/utils/prepare-code-coverage-artifact.py =================================================================== --- llvm/utils/prepare-code-coverage-artifact.py +++ llvm/utils/prepare-code-coverage-artifact.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function Index: llvm/utils/release/findRegressions-nightly.py =================================================================== --- llvm/utils/release/findRegressions-nightly.py +++ llvm/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 Index: llvm/utils/release/findRegressions-simple.py =================================================================== --- llvm/utils/release/findRegressions-simple.py +++ llvm/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 Index: llvm/utils/schedcover.py =================================================================== --- llvm/utils/schedcover.py +++ llvm/utils/schedcover.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 # This creates a CSV file from the output of the debug output of subtarget: # llvm-tblgen --gen-subtarget --debug-only=subtarget-emitter Index: llvm/utils/shuffle_fuzz.py =================================================================== --- llvm/utils/shuffle_fuzz.py +++ llvm/utils/shuffle_fuzz.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A shuffle vector fuzz tester. Index: llvm/utils/shuffle_select_fuzz_tester.py =================================================================== --- llvm/utils/shuffle_select_fuzz_tester.py +++ llvm/utils/shuffle_select_fuzz_tester.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A shuffle-select vector fuzz tester. Index: llvm/utils/sort_includes.py =================================================================== --- llvm/utils/sort_includes.py +++ llvm/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. Index: llvm/utils/testgen/mc-bundling-x86-gen.py =================================================================== --- llvm/utils/testgen/mc-bundling-x86-gen.py +++ llvm/utils/testgen/mc-bundling-x86-gen.py @@ -1,5 +1,5 @@ -#!/usr/bin/python +#!/usr/bin/python3 # Auto-generates an exhaustive and repetitive test for correct bundle-locked # alignment on x86. Index: llvm/utils/unicode-case-fold.py =================================================================== --- llvm/utils/unicode-case-fold.py +++ llvm/utils/unicode-case-fold.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ Unicode case folding database conversion utility Index: llvm/utils/update_cc_test_checks.py =================================================================== --- llvm/utils/update_cc_test_checks.py +++ llvm/utils/update_cc_test_checks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 '''A utility to update LLVM IR CHECK lines in C/C++ FileCheck test files. Example RUN lines in .c/.cc test files: Index: llvm/utils/wciia.py =================================================================== --- llvm/utils/wciia.py +++ llvm/utils/wciia.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """ wciia - Whose Code Is It Anyway Index: mlir/utils/generate-test-checks.py =================================================================== --- mlir/utils/generate-test-checks.py +++ mlir/utils/generate-test-checks.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """A script to generate FileCheck statements for mlir unit tests. This script is a utility to add FileCheck patterns to an mlir file. Index: openmp/runtime/tools/summarizeStats.py =================================================================== --- openmp/runtime/tools/summarizeStats.py +++ openmp/runtime/tools/summarizeStats.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import pandas as pd import numpy as np Index: polly/utils/jscop2cloog.py =================================================================== --- polly/utils/jscop2cloog.py +++ polly/utils/jscop2cloog.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import argparse, os import json Index: polly/utils/pyscop/jscop2iscc.py =================================================================== --- polly/utils/pyscop/jscop2iscc.py +++ polly/utils/pyscop/jscop2iscc.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 import argparse, isl, os import json