From 6488650d24bc9352ebdd8b3b7428c0bb020e5d59 Mon Sep 17 00:00:00 2001 From: omarandlorraine <64254276+omarandlorraine@users.noreply.github.com> Date: Thu, 3 Nov 2022 21:14:30 +0000 Subject: [PATCH] use python3 on debians too (#3812) * use python3 on debians too in Debian 11 which is Bullseye, /usr/bin/python is a Python2 interpreter, which means that cppcheck-htmlreport fails to run here. So I've chenged the shebang to use python3 * change all shebangs from python to python3 Co-authored-by: Sam M W --- htmlreport/cppcheck-htmlreport | 2 +- htmlreport/setup.py | 2 +- htmlreport/test_htmlreport.py | 2 +- test/synthetic/report.py | 2 +- tools/ci.py | 2 +- tools/extracttests.py | 2 +- tools/listErrorsWithoutCWE.py | 2 +- tools/matchcompiler.py | 2 +- tools/parse-glibc.py | 2 +- tools/reduce.py | 2 +- tools/test_matchcompiler.py | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/htmlreport/cppcheck-htmlreport b/htmlreport/cppcheck-htmlreport index 5c0a78adf..ce5956c1e 100755 --- a/htmlreport/cppcheck-htmlreport +++ b/htmlreport/cppcheck-htmlreport @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import unicode_literals diff --git a/htmlreport/setup.py b/htmlreport/setup.py index e741ece55..ac790fbeb 100755 --- a/htmlreport/setup.py +++ b/htmlreport/setup.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from setuptools import setup diff --git a/htmlreport/test_htmlreport.py b/htmlreport/test_htmlreport.py index ffca77f29..4fd6cf6c2 100755 --- a/htmlreport/test_htmlreport.py +++ b/htmlreport/test_htmlreport.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """Test cppcheck-htmlreport.""" import os diff --git a/test/synthetic/report.py b/test/synthetic/report.py index e4d972102..17f58239f 100755 --- a/test/synthetic/report.py +++ b/test/synthetic/report.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os import re diff --git a/tools/ci.py b/tools/ci.py index 6d2b8cfc4..27d0f8718 100644 --- a/tools/ci.py +++ b/tools/ci.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # continuous integration # build daily reports (doxygen,coverage,etc) diff --git a/tools/extracttests.py b/tools/extracttests.py index 277131465..42a80d6c0 100755 --- a/tools/extracttests.py +++ b/tools/extracttests.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis # Copyright (C) 2007-2021 Cppcheck team. diff --git a/tools/listErrorsWithoutCWE.py b/tools/listErrorsWithoutCWE.py index 1a4c784c4..0a78ff5bd 100755 --- a/tools/listErrorsWithoutCWE.py +++ b/tools/listErrorsWithoutCWE.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 from __future__ import print_function import argparse import xml.etree.ElementTree as ET diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py index b195f3816..254436696 100755 --- a/tools/matchcompiler.py +++ b/tools/matchcompiler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis # Copyright (C) 2007-2021 Cppcheck team. diff --git a/tools/parse-glibc.py b/tools/parse-glibc.py index cb79edec8..6120e68ca 100644 --- a/tools/parse-glibc.py +++ b/tools/parse-glibc.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import glob import os diff --git a/tools/reduce.py b/tools/reduce.py index ae4507e61..595aaff18 100755 --- a/tools/reduce.py +++ b/tools/reduce.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import subprocess import sys import time diff --git a/tools/test_matchcompiler.py b/tools/test_matchcompiler.py index 82327fb86..104601df7 100755 --- a/tools/test_matchcompiler.py +++ b/tools/test_matchcompiler.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 # # Cppcheck - A tool for static C/C++ code analysis # Copyright (C) 2007-2021 Cppcheck team.