Skip to content

Commit 5a32236

Browse files
authored
fixed scriptcheck.yml (#5268)
1 parent e7a2585 commit 5a32236

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/scriptcheck.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,11 @@ jobs:
3737

3838
needs: build
3939
# 'ubuntu-22.04' removes Python 2.7, 3.5 and 3.6 so keep the previous LTS version
40+
# 'ubutunu-20.04' no longer works on 2.7 - TODO: re-added in a different way or remove support for it?
4041
runs-on: ubuntu-20.04
41-
container:
42-
image: python:2.7.18-buster
4342
strategy:
4443
matrix:
45-
python-version: [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10', '3.11']
44+
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, '3.10', '3.11']
4645
fail-fast: false
4746

4847
steps:

addons/misra_9.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def misra_9_x(self, data, rule, rawTokens = None):
418418
has_var = True
419419
continue
420420
unknown_constant = True
421-
cppcheckdata.reportError(sz, 'error', f'Unknown constant {t.str}, please review configuration', 'misra', 'config')
421+
cppcheckdata.reportError(sz, 'error', 'Unknown constant {}, please review configuration'.format(t.str), 'misra', 'config')
422422
has_config_errors = True
423423
if t.isArithmeticalOp:
424424
tokens += [t.astOperand1, t.astOperand2]

0 commit comments

Comments
 (0)