diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-08-20 11:13:43 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-20 11:13:43 (GMT) |
commit | 159db050f429da0bc847949b273ff25b8941943c (patch) | |
tree | dc295a414edadca54b6cf05f248be66b5de9110b /Python/compile.c | |
parent | 595fb38e911c9f674d8c0178a223ba5426395184 (diff) | |
download | cpython-159db050f429da0bc847949b273ff25b8941943c.zip cpython-159db050f429da0bc847949b273ff25b8941943c.tar.gz cpython-159db050f429da0bc847949b273ff25b8941943c.tar.bz2 |
[3.13] gh-123048: Fix missing source location in pattern matching code (GH-123167) (#123169)
gh-123048: Fix missing source location in pattern matching code (GH-123167)
(cherry picked from commit bffed80230f2617de2ee02bd4bdded1024234dab)
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Diffstat (limited to 'Python/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index 6c6260c..3edf441 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -7478,7 +7478,7 @@ compiler_match_inner(struct compiler *c, stmt_ty s, pattern_context *pc) ADDOP(c, LOC(m->pattern), POP_TOP); } VISIT_SEQ(c, stmt, m->body); - ADDOP_JUMP(c, NO_LOCATION, JUMP_NO_INTERRUPT, end); + ADDOP_JUMP(c, NO_LOCATION, JUMP, end); // If the pattern fails to match, we want the line number of the // cleanup to be associated with the failed pattern, not the last line // of the body |