From d1eb4b5e60274b48257056750508f74f6b37f38e Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Wed, 5 Mar 2025 10:50:59 +0800 Subject: [PATCH] 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 --- Lib/encodings/rot_13.py | 1 - Lib/idlelib/idle_test/example_noext | 2 -- Parser/asdl_c.py | 2 +- Tools/build/smelly.py | 2 +- Tools/wasm/emscripten/web_example/server.py | 2 +- Tools/wasm/emscripten/web_example/wasm_assets.py | 2 +- 6 files changed, 4 insertions(+), 7 deletions(-) mode change 100755 => 100644 Lib/encodings/rot_13.py diff --git a/Lib/encodings/rot_13.py b/Lib/encodings/rot_13.py old mode 100755 new mode 100644 index 5627bfbc69cbbc..ee8005b2d6ce31 --- a/Lib/encodings/rot_13.py +++ b/Lib/encodings/rot_13.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python """ Python Character Mapping Codec for ROT13. This codec de/encodes from str to str. diff --git a/Lib/idlelib/idle_test/example_noext b/Lib/idlelib/idle_test/example_noext index 7d2510e30bc0ae..10e06dc276e927 100644 --- a/Lib/idlelib/idle_test/example_noext +++ b/Lib/idlelib/idle_test/example_noext @@ -1,4 +1,2 @@ -#!usr/bin/env python - def example_function(some_argument): pass diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index 5c8014a47d5177..268e57eb7a3a0e 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -1,4 +1,4 @@ -#! /usr/bin/env python +#! /usr/bin/env python3 """Generate C code from an ASDL description.""" import sys diff --git a/Tools/build/smelly.py b/Tools/build/smelly.py index 7c534269c57a09..6382acf740dafc 100755 --- a/Tools/build/smelly.py +++ b/Tools/build/smelly.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # Script checking that all symbols exported by libpython start with Py or _Py import os.path diff --git a/Tools/wasm/emscripten/web_example/server.py b/Tools/wasm/emscripten/web_example/server.py index 768e6f84e07798..e0c2c345ae7eaf 100755 --- a/Tools/wasm/emscripten/web_example/server.py +++ b/Tools/wasm/emscripten/web_example/server.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import argparse from http import server diff --git a/Tools/wasm/emscripten/web_example/wasm_assets.py b/Tools/wasm/emscripten/web_example/wasm_assets.py index 7f0fa7ae7c10ec..59f621c2fd2cdc 100755 --- a/Tools/wasm/emscripten/web_example/wasm_assets.py +++ b/Tools/wasm/emscripten/web_example/wasm_assets.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Create a WASM asset bundle directory structure. The WASM asset bundles are pre-loaded by the final WASM build. The bundle