Skip to content

Commit 25508ef

Browse files
committed
Use == instead of in for single-element list
Signed-off-by: John Pennycook <john.pennycook@intel.com>
1 parent ff15f5e commit 25508ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codebasin/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ class GnuArgumentParser(ArgumentParser):
282282
def parse_args(self, argv: list[str]) -> list[PreprocessorConfiguration]:
283283
args = _parse_compiler_args(argv + _importcfg[self.name])
284284
for arg in argv:
285-
if arg in ["-fopenmp"]:
285+
if arg == "-fopenmp":
286286
args.defines.append("_OPENMP")
287287
configuration = PreprocessorConfiguration(
288288
args.defines,

0 commit comments

Comments
 (0)