From a7053910541e79c5efc7517ec85f003779cb1a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 12 Mar 2018 15:47:06 +0100 Subject: [PATCH] misra.py: minor update --- addons/misra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/misra.py b/addons/misra.py index 4ae23ec95..1e6881378 100644 --- a/addons/misra.py +++ b/addons/misra.py @@ -698,7 +698,7 @@ def misra_14_4(data): for token in data.tokenlist: if token.str != '(': continue - if not token.astOperand1 or not (token.astOperand1.str in {'if', 'while'}): + if not token.astOperand1 or not (token.astOperand1.str in ['if', 'while']): continue if not isBoolExpression(token.astOperand2): reportError(token, 14, 4)