Skip to content

Commit

Permalink
rebase, regen, and apply Guido's suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel committed Jan 25, 2023
1 parent b55a4a3 commit d7c1c61
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,9 +515,7 @@ dummy_func(
exc = args[0];
/* fall through */
case 0:
if (do_raise(tstate, exc, cause)) {
ERROR_IF(true, exception_unwind);
}
ERROR_IF(do_raise(tstate, exc, cause), exception_unwind);
break;
default:
_PyErr_SetString(tstate, PyExc_SystemError,
Expand Down
4 changes: 1 addition & 3 deletions Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Python/opcode_metadata.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ _PyOpcode_num_popped(int opcode, int oparg) {
case CALL_INTRINSIC_1:
return 1;
case RAISE_VARARGS:
return -1;
return oparg;
case INTERPRETER_EXIT:
return 1;
case RETURN_VALUE:
Expand Down Expand Up @@ -430,7 +430,7 @@ _PyOpcode_num_pushed(int opcode, int oparg) {
case CALL_INTRINSIC_1:
return 1;
case RAISE_VARARGS:
return -1;
return 0;
case INTERPRETER_EXIT:
return 0;
case RETURN_VALUE:
Expand Down

0 comments on commit d7c1c61

Please sign in to comment.