You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/08/03 10:38:56 UTC
[airflow] branch main updated: Use 'python3' instead of 'python' in scripts (#25499)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new 87a0bd969b Use 'python3' instead of 'python' in scripts (#25499)
87a0bd969b is described below
commit 87a0bd969b5bdb06c6e93236432eff6d28747e59
Author: Tzu-ping Chung <ur...@gmail.com>
AuthorDate: Wed Aug 3 18:38:28 2022 +0800
Use 'python3' instead of 'python' in scripts (#25499)
These scripts are run in the *host*, not a container, so they should
reference 'python3' explicitly to make sure they get a useful Python
version. According to PEP 394, 'python' could refer to Python 2 in a
global environment, so 'python3' should be preferred for scripts.
---
scripts/ci/pre_commit/pre_commit_compile_www_assets.py | 2 +-
scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py | 2 +-
scripts/ci/pre_commit/pre_commit_www_lint.py | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/ci/pre_commit/pre_commit_compile_www_assets.py b/scripts/ci/pre_commit/pre_commit_compile_www_assets.py
index 03d6ce65dd..ba71372f23 100755
--- a/scripts/ci/pre_commit/pre_commit_compile_www_assets.py
+++ b/scripts/ci/pre_commit/pre_commit_compile_www_assets.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
diff --git a/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py b/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py
index 40aa17511e..d418f91338 100755
--- a/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py
+++ b/scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
diff --git a/scripts/ci/pre_commit/pre_commit_www_lint.py b/scripts/ci/pre_commit/pre_commit_www_lint.py
index a89877df8d..3498cc6a98 100755
--- a/scripts/ci/pre_commit/pre_commit_www_lint.py
+++ b/scripts/ci/pre_commit/pre_commit_www_lint.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information