Skip to content

Commit 5136e72

Browse files
corona10pablogsal
authored andcommitted
argument-clinic: Simplify multi-line string handling (GH-17852)
1 parent ee94bdb commit 5136e72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tools/clinic/clinic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,14 +1182,14 @@ def render_option_group_parsing(self, f, template_dict):
11821182
lines = [self.group_to_variable_name(g) + " = 1;" for g in group_ids]
11831183
lines = "\n".join(lines)
11841184

1185-
s = """
1185+
s = """\
11861186
case {count}:
11871187
if (!PyArg_ParseTuple(args, "{format_units}:{name}", {parse_arguments})) {{
11881188
goto exit;
11891189
}}
11901190
{group_booleans}
11911191
break;
1192-
"""[1:]
1192+
"""
11931193
s = linear_format(s, group_booleans=lines)
11941194
s = s.format_map(d)
11951195
add(s)

0 commit comments

Comments
 (0)