Skip to content

Commit c65688d

Browse files
LINT
1 parent 1be3e2a commit c65688d

File tree

2 files changed

+20
-22
lines changed

2 files changed

+20
-22
lines changed

Python/generated_cases.c.h

Lines changed: 12 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/cases_generator/tier1_generator.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -140,13 +140,13 @@ def uses_this(inst: Instruction) -> tuple[bool, bool]:
140140
return False, False
141141

142142

143-
UNKNOWN_OPCODE_HANDLER = """
144-
_PyErr_Format(tstate, PyExc_SystemError,
145-
"%U:%d: unknown opcode %d",
146-
_PyFrame_GetCode(frame)->co_filename,
147-
PyUnstable_InterpreterFrame_GetLine(frame),
148-
opcode);
149-
JUMP_TO_LABEL(error);
143+
UNKNOWN_OPCODE_HANDLER ="""\
144+
_PyErr_Format(tstate, PyExc_SystemError,
145+
"%U:%d: unknown opcode %d",
146+
_PyFrame_GetCode(frame)->co_filename,
147+
PyUnstable_InterpreterFrame_GetLine(frame),
148+
opcode);
149+
JUMP_TO_LABEL(error);
150150
"""
151151

152152
def generate_tier1(
@@ -160,7 +160,7 @@ def generate_tier1(
160160
#define TIER_ONE 1
161161
""")
162162
generate_tier1_tailcall_metadata(analysis, outfile, lines)
163-
outfile.write(f"""
163+
outfile.write(f"""
164164
#ifndef Py_TAIL_CALL_INTERP
165165
#if !USE_COMPUTED_GOTOS
166166
dispatch_opcode:

0 commit comments

Comments
 (0)