From cbf6b4a31af4f6ca97419722ab22c0c31e3c323d Mon Sep 17 00:00:00 2001 From: "Samuel E. Browne" Date: Thu, 6 Jun 2024 15:15:44 -0600 Subject: [PATCH] Use 'python3' to access Python (#610) As per https://peps.python.org/pep-0394, it is best practice to not use 'python' in shebangs. Use the explicit `python3` entry point instead. Signed-off-by: Samuel E. Browne --- common_tools/git/cherry-pick-commits.py | 2 +- common_tools/git/commit-summary-over-periods.py | 2 +- common_tools/git/hooks/server-side/get_recipients.py | 2 +- common_tools/git/hooks/server-side/update_push_log.py | 2 +- common_tools/test/hhmmss_math.py | 2 +- common_tools/test/kill-pstree.py | 2 +- refactoring/remove_std_tribits_includes.py | 2 +- tribits/refactoring/string-replace.py | 2 +- tribits/refactoring/token-replace.py | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/common_tools/git/cherry-pick-commits.py b/common_tools/git/cherry-pick-commits.py index e3a3f2a6c..c45ec0bf0 100755 --- a/common_tools/git/cherry-pick-commits.py +++ b/common_tools/git/cherry-pick-commits.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ************************************************************************ # diff --git a/common_tools/git/commit-summary-over-periods.py b/common_tools/git/commit-summary-over-periods.py index be5dd8aea..8d5a3fe1b 100755 --- a/common_tools/git/commit-summary-over-periods.py +++ b/common_tools/git/commit-summary-over-periods.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ************************************************************************ # diff --git a/common_tools/git/hooks/server-side/get_recipients.py b/common_tools/git/hooks/server-side/get_recipients.py index 52274fea1..fbe2976ff 100755 --- a/common_tools/git/hooks/server-side/get_recipients.py +++ b/common_tools/git/hooks/server-side/get_recipients.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import commands import os diff --git a/common_tools/git/hooks/server-side/update_push_log.py b/common_tools/git/hooks/server-side/update_push_log.py index d7fa52602..8ddfc8f9e 100755 --- a/common_tools/git/hooks/server-side/update_push_log.py +++ b/common_tools/git/hooks/server-side/update_push_log.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ************************************************************************ # diff --git a/common_tools/test/hhmmss_math.py b/common_tools/test/hhmmss_math.py index 81dce2d91..a954b12cd 100644 --- a/common_tools/test/hhmmss_math.py +++ b/common_tools/test/hhmmss_math.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # This simple set of python functions makes it easy to do simple math with # times formatted as
hms. This makes it easier to analyze diff --git a/common_tools/test/kill-pstree.py b/common_tools/test/kill-pstree.py index 4fc93e9d3..3d35eedf9 100755 --- a/common_tools/test/kill-pstree.py +++ b/common_tools/test/kill-pstree.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # @HEADER # ************************************************************************ # diff --git a/refactoring/remove_std_tribits_includes.py b/refactoring/remove_std_tribits_includes.py index 29dcea3f9..5c5cba3f7 100755 --- a/refactoring/remove_std_tribits_includes.py +++ b/refactoring/remove_std_tribits_includes.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 include_files_to_remove = [ "AddSubdirectories", diff --git a/tribits/refactoring/string-replace.py b/tribits/refactoring/string-replace.py index bb6b33a34..b994639df 100755 --- a/tribits/refactoring/string-replace.py +++ b/tribits/refactoring/string-replace.py @@ -1,4 +1,4 @@ -#!/bin/env python3 +#!/bin/env python33 usageHelp = r""" diff --git a/tribits/refactoring/token-replace.py b/tribits/refactoring/token-replace.py index 9c425a65a..d953d7d6e 100755 --- a/tribits/refactoring/token-replace.py +++ b/tribits/refactoring/token-replace.py @@ -1,4 +1,4 @@ -#!/bin/env python3 +#!/bin/env python33 usageHelp = r"""