Skip to content

Commit b160d20

Browse files
Fix indentation
1 parent 9cee967 commit b160d20

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

Python/optimizer_cases.c.h

Lines changed: 1 addition & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/optimizer_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,8 +247,8 @@ def replace_opcode_if_evaluates_pure(
247247
if input_count in input_count_to_uop:
248248
replacement_uop = input_count_to_uop[input_count]
249249
input_desc = "one input" if input_count == 1 else "two inputs"
250-
emitter.emit(f"""
251-
if (sym_is_const(ctx, {outp.name})) {{
250+
emitter.emit(
251+
f"""if (sym_is_const(ctx, {outp.name})) {{
252252
PyObject *result = sym_get_const(ctx, {outp.name});
253253
if (_Py_IsImmortal(result)) {{
254254
// Replace with {replacement_uop} since we have {input_desc} and an immortal result

0 commit comments

Comments
 (0)