Skip to content

Commit 39f070d

Browse files
committed
Keep the tools happy
1 parent 495915e commit 39f070d

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Tools/cases_generator/generators_common.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,4 +231,3 @@ def get_have_arg_and_min_instrumented(analysis: Analysis) -> tuple[int, int]:
231231
if analysis.instructions[name].properties.oparg and op < first_arg:
232232
first_arg = op
233233
return first_arg, min_instrumented
234-

Tools/cases_generator/opcode_metadata_generator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def generate_expansion_table(
263263
out.emit("_PyOpcode_macro_expansion[256] = {\n")
264264
for inst_name, expansions in expansions_table.items():
265265
uops = [f"{{ {name}, {size}, {offset} }}" for (name, size, offset) in expansions]
266-
out.emit(f"[{inst_name}] = {{ .nuops = {len(expansions)}, .uops = {{ {", ".join(uops)} }} }},\n")
266+
out.emit(f'[{inst_name}] = {{ .nuops = {len(expansions)}, .uops = {{ {", ".join(uops)} }} }},\n')
267267
out.emit("};\n")
268268
out.emit("#endif // NEED_OPCODE_METADATA\n\n")
269269

Tools/cases_generator/stack.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,4 +188,4 @@ def get_stack_effect(inst: Instruction) -> Stack:
188188
stack.pop(var)
189189
for i, var in enumerate(uop.stack.outputs):
190190
stack.push(var)
191-
return stack
191+
return stack

0 commit comments

Comments
 (0)