This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v2-3-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 7a191e55a411a43ca41b764567bc4b1a9fe0494b Author: Tzu-ping Chung <[email protected]> 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. (cherry picked from commit 87a0bd969b5bdb06c6e93236432eff6d28747e59) --- scripts/ci/pre_commit/pre_commit_compile_www_assets.py | 2 +- scripts/ci/pre_commit/pre_commit_compile_www_assets_dev.py | 2 +- 2 files changed, 2 insertions(+), 2 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
