diff --git a/scripts/west_commands/zcmake.py b/scripts/west_commands/zcmake.py index afc1366c911..a05e21fa6f0 100644 --- a/scripts/west_commands/zcmake.py +++ b/scripts/west_commands/zcmake.py @@ -183,7 +183,7 @@ class CMakeCacheEntry: except ValueError as exc: args = exc.args + ('on line {}: {}'.format(line_no, line),) raise ValueError(args) from exc - elif type_ == 'STRING' or type_ == 'INTERNAL': + elif type_ in {'STRING', 'INTERNAL'}: # If the value is a CMake list (i.e. is a string which # contains a ';'), convert to a Python list. if ';' in value: