Skip to content

Commit 464199d

Browse files
committed
Unify python shebangs
As per PEP-0394[1], there is no real concensus over what binary names Python has, specifically 'python' could be Python 3, Python 2, or not exist. However, everyone has a python3 interpreter and the scripts are all written for Python 3. Unify the shebangs so that the ~50% of shebangs that use python now use python3. [1] https://peps.python.org/pep-0394/
1 parent 19f7550 commit 464199d

File tree

184 files changed

+184
-184
lines changed

Some content is hidden

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

184 files changed

+184
-184
lines changed

clang-tools-extra/clang-include-fixer/find-all-symbols/tool/run-find-all-symbols.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# =- run-find-all-symbols.py - Parallel find-all-symbols runner -*- python -*-=#
44
#

clang-tools-extra/clangd/test/remote-index/pipeline_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# ===- pipeline_helper.py - Remote Index pipeline Helper *- python -------*--===#
44
#

clang/bindings/python/examples/cindex/cindex-dump.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# ===- cindex-dump.py - cindex/Python Source Dump -------------*- python -*--===#
44
#

clang/bindings/python/examples/cindex/cindex-includes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# ===- cindex-includes.py - cindex/Python Inclusion Graph -----*- python -*--===#
44
#

clang/docs/tools/generate_formatted_state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# A tool to parse creates a document outlining how clang formatted the
33
# LLVM project is.
44

clang/test/Analysis/check-analyzer-fixit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# ===- check-analyzer-fixit.py - Static Analyzer test helper ---*- python -*-===#
44
#

clang/test/Analysis/csv2json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# ===- csv2json.py - Static Analyzer test helper ---*- python -*-===#
44
#

clang/test/Driver/ftime-trace-sections.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import json, sys, time
44

clang/tools/include-mapping/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
# ===- test.py - ---------------------------------------------*- python -*--===#
33
#
44
# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

clang/tools/scan-build/bin/set-xcode-analyzer

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# [PR 11661] Note that we hardwire to /usr/bin/python because we
44
# want to the use the system version of Python on Mac OS X.

0 commit comments

Comments
 (0)