diff options
author | Savannah Ostrowski <sostrowski@microsoft.com> | 2023-10-24 06:13:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-24 06:13:16 (GMT) |
commit | 6640f1d8d2462ca0877e1d2789e1721767e9caf2 (patch) | |
tree | 2e2e1ab850d96f3167ebbc0d954eceadaf972c2b /Objects | |
parent | 4fbf20605bd70fb96711c92a0ce3309291ffd6fb (diff) | |
download | cpython-6640f1d8d2462ca0877e1d2789e1721767e9caf2.zip cpython-6640f1d8d2462ca0877e1d2789e1721767e9caf2.tar.gz cpython-6640f1d8d2462ca0877e1d2789e1721767e9caf2.tar.bz2 |
GH-94438: Restore ability to jump over None tests (GH-111237)
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/frameobject.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c index d754443..12faef0 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -329,6 +329,8 @@ mark_stacks(PyCodeObject *code_obj, int len) switch (opcode) { case POP_JUMP_IF_FALSE: case POP_JUMP_IF_TRUE: + case POP_JUMP_IF_NONE: + case POP_JUMP_IF_NOT_NONE: { int64_t target_stack; int j = next_i + oparg; |