Skip to content

Commit 6488650

Browse files
omarandlorraineSam M W
and
Sam M W
authored
use python3 on debians too (danmar#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 <[email protected]>
1 parent 2c53b73 commit 6488650

11 files changed

+11
-11
lines changed

Diff for: htmlreport/cppcheck-htmlreport

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
from __future__ import unicode_literals
44

Diff for: htmlreport/setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
from setuptools import setup
44

Diff for: htmlreport/test_htmlreport.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
"""Test cppcheck-htmlreport."""
33

44
import os

Diff for: test/synthetic/report.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
import os
33
import re
44

Diff for: tools/ci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
# continuous integration
44
# build daily reports (doxygen,coverage,etc)

Diff for: tools/extracttests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# Cppcheck - A tool for static C/C++ code analysis
44
# Copyright (C) 2007-2021 Cppcheck team.

Diff for: tools/listErrorsWithoutCWE.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
from __future__ import print_function
33
import argparse
44
import xml.etree.ElementTree as ET

Diff for: tools/matchcompiler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# Cppcheck - A tool for static C/C++ code analysis
44
# Copyright (C) 2007-2021 Cppcheck team.

Diff for: tools/parse-glibc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22

33
import glob
44
import os

Diff for: tools/reduce.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
import subprocess
33
import sys
44
import time

Diff for: tools/test_matchcompiler.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/env python
1+
#!/usr/bin/env python3
22
#
33
# Cppcheck - A tool for static C/C++ code analysis
44
# Copyright (C) 2007-2021 Cppcheck team.

0 commit comments

Comments
 (0)