bpo-15088 : Remove PyGen_NeedsFinalizing() (GH-15702)

Remove PyGen_NeedsFinalizing(): it was not
documented, tested or used anywhere within CPython after
the implementation of PEP 442.
This commit is contained in:
Joannah Nanjekye 2019-09-06 12:41:38 -03:00 committed by Victor Stinner
parent d8c93aa5d2
commit 74b662cf20
5 changed files with 9 additions and 22 deletions

View file

@ -3227,11 +3227,6 @@ main_loop:
}
case TARGET(SETUP_FINALLY): {
/* NOTE: If you add any new block-setup opcodes that
are not try/except/finally handlers, you may need
to update the PyGen_NeedsFinalizing() function.
*/
PyFrame_BlockSetup(f, SETUP_FINALLY, INSTR_OFFSET() + oparg,
STACK_LEVEL());
DISPATCH();