Skip to content

Commit 6488650

Browse files
omarandlorraineSam M W
andauthored
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

File tree

11 files changed

+11
-11
lines changed

11 files changed

+11
-11
lines changed

htmlreport/cppcheck-htmlreport

Lines changed: 1 addition & 1 deletion
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

htmlreport/setup.py

Lines changed: 1 addition & 1 deletion
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

htmlreport/test_htmlreport.py

Lines changed: 1 addition & 1 deletion
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

test/synthetic/report.py

Lines changed: 1 addition & 1 deletion
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

tools/ci.py

Lines changed: 1 addition & 1 deletion
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)

tools/extracttests.py

Lines changed: 1 addition & 1 deletion
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.

tools/listErrorsWithoutCWE.py

Lines changed: 1 addition & 1 deletion
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

tools/matchcompiler.py

Lines changed: 1 addition & 1 deletion
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.

tools/parse-glibc.py

Lines changed: 1 addition & 1 deletion
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

tools/reduce.py

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)