Skip to content

Commit 109afbc

Browse files
committed
gh-85792: Update shebang to python3
According to PEP 394, python may or may not be installed depending on a distribution or system configuration, so update the shebang to python3 [1] https://peps.python.org/pep-0394/ Signed-off-by: Changqing Li <[email protected]>
1 parent e53d105 commit 109afbc

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

Lib/encodings/rot_13.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
""" Python Character Mapping Codec for ROT13.
33
44
This codec de/encodes from str to str.

Lib/idlelib/idle_test/example_noext

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
#!usr/bin/env python
2-
31
def example_function(some_argument):
42
pass

Parser/asdl_c.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
"""Generate C code from an ASDL description."""
33

44
import sys

Tools/build/smelly.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
# Script checking that all symbols exported by libpython start with Py or _Py
33

44
import os.path

Tools/wasm/emscripten/web_example/server.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
import argparse
33
from http import server
44

Tools/wasm/emscripten/web_example/wasm_assets.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
"""Create a WASM asset bundle directory structure.
33
44
The WASM asset bundles are pre-loaded by the final WASM build. The bundle

0 commit comments

Comments
 (0)