diff options
| author | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-02-16 18:23:35 +0100 |
|---|---|---|
| committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2026-02-16 19:47:58 +0100 |
| commit | 9c0ddde6c830d4718cea88160693fdad6cb15137 (patch) | |
| tree | 237f6bccb9761929936e0fe2e9298488d58e76ca /tests | |
| parent | 14dc90737a57bd1c6dc0ebc3eb30ab3090cc0afb (diff) | |
It seems that unversioned Python shebangs are discouraged these days:
- See the lintian web on Debian:
https://lintian.debian.org/tags/script-uses-unversioned-python-in-shebang.html
- Also, see "Finalizing Fedora's Switch to Python3":
https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
Replace them all tree-wide.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tests')
| -rwxr-xr-x | tests/json_echo/run-test.py | 2 | ||||
| -rwxr-xr-x | tests/py/nft-test.py | 2 | ||||
| -rwxr-xr-x | tests/shell/helpers/json-pretty.sh | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/tests/json_echo/run-test.py b/tests/json_echo/run-test.py index 7d0eca0a..ed8360bc 100755 --- a/tests/json_echo/run-test.py +++ b/tests/json_echo/run-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from __future__ import print_function import sys diff --git a/tests/py/nft-test.py b/tests/py/nft-test.py index ff2412ac..53fd3f7a 100755 --- a/tests/py/nft-test.py +++ b/tests/py/nft-test.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # (C) 2014 by Ana Rey Botello <anarey@gmail.com> # diff --git a/tests/shell/helpers/json-pretty.sh b/tests/shell/helpers/json-pretty.sh index 31739b02..e8679583 100755 --- a/tests/shell/helpers/json-pretty.sh +++ b/tests/shell/helpers/json-pretty.sh @@ -1,7 +1,7 @@ #!/bin/bash -e exec_pretty() { - # The output of this command must be stable (and `jq` and python + # The output of this command must be stable (and `jq` and python3 # fallback must generate the same output. if command -v jq &>/dev/null ; then @@ -9,7 +9,7 @@ exec_pretty() { exec jq fi - # Fallback to python. + # Fallback to python3. exec python3 -c ' import json import sys |
