Skip to content

Commit adc74d9

Browse files
committed
style: collapse parts= list to one line (ruff)
1 parent 24150bd commit adc74d9

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

toolchain/mfc/params/generators/fortran_gen.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,7 @@ def generate_namelist_fpp(target: str) -> str:
9191
opt_lines = _pack_namelist(opt, _CONT_PREFIX, _CONT2_PREFIX, _MAX_LINE)
9292
nl_with_cont = nl_lines[:]
9393
nl_with_cont[-1] += ", &"
94-
parts = (
95-
[_HEADER.rstrip(), "#:if MFC_CASE_OPTIMIZATION"] +
96-
nl_lines +
97-
["#:else"] +
98-
nl_with_cont +
99-
opt_lines +
100-
["#:endif"]
101-
)
94+
parts = [_HEADER.rstrip(), "#:if MFC_CASE_OPTIMIZATION"] + nl_lines + ["#:else"] + nl_with_cont + opt_lines + ["#:endif"]
10295
else:
10396
parts = [_HEADER.rstrip()] + nl_lines
10497
return "\n".join(parts) + "\n"

0 commit comments

Comments
 (0)