Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Fidget-Spinner committed Jan 10, 2025
1 parent a68d891 commit 1310b47
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Lib/test/test_generated_cases.py
Original file line number Diff line number Diff line change
Expand Up @@ -1792,7 +1792,7 @@ def test_correctly_finds_pyeval_framedefault(self):
PyObject* _Py_HOT_FUNCTION
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
{
/* END_BASE_INTERPRETER */
}
"""
Expand All @@ -1805,7 +1805,7 @@ def test_simple_label(self):
PyObject* _Py_HOT_FUNCTION
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
{
TAIL_CALL_TARGET(error):
DO_THING();
/* END_BASE_INTERPRETER */
Expand All @@ -1827,7 +1827,7 @@ def test_fallthrough_label(self):
PyObject* _Py_HOT_FUNCTION
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
{
TAIL_CALL_TARGET(error):
DO_THING();
TAIL_CALL_TARGET(fallthrough):
Expand Down Expand Up @@ -1858,7 +1858,7 @@ def test_transform_gotos(self):
PyObject* _Py_HOT_FUNCTION
_PyEval_EvalFrameDefault(PyThreadState *tstate, _PyInterpreterFrame *frame, int throwflag)
{
TAIL_CALL_TARGET(error):
if (thing) {
goto fallthrough;
Expand Down
2 changes: 1 addition & 1 deletion Python/generated_tail_call_handlers.c.h
Original file line number Diff line number Diff line change
Expand Up @@ -8462,7 +8462,7 @@ _PyErr_Format(tstate, PyExc_SystemError,
"%U:%d: unknown opcode %d",
_PyFrame_GetCode(frame)->co_filename,
PyUnstable_InterpreterFrame_GetLine(frame),
opcode);
opcode);
CEVAL_GOTO(error);}
static py_tail_call_funcptr INSTRUCTION_TABLE[256] = {
[BINARY_OP] = _TAIL_CALL_BINARY_OP,
Expand Down
2 changes: 1 addition & 1 deletion Tools/cases_generator/tier1_tail_call_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def generate_tier1(
"%U:%d: unknown opcode %d",
_PyFrame_GetCode(frame)->co_filename,
PyUnstable_InterpreterFrame_GetLine(frame),
opcode);
opcode);
""")
out.emit("CEVAL_GOTO(error);")
out.emit("}\n")
Expand Down

0 comments on commit 1310b47

Please sign in to comment.