From aced809dc484744c282be10799169bbdd50d65e2 Mon Sep 17 00:00:00 2001 From: Brandt Bucher Date: Tue, 20 Sep 2022 15:26:56 -0700 Subject: [3.10] GH-95921: Fix positions for some chained comparisons (GH-96968) (GH-96974) (cherry picked from commit dfc73b57247aac575c83055d960c03bdc28b51fd) Automerge-Triggered-By: GH:brandtbucher --- Python/compile.c | 1 + 1 file changed, 1 insertion(+) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 40d1761804..e5438f7d00 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2691,6 +2691,7 @@ compiler_jump_if(struct compiler *c, expr_ty e, basicblock *next, int cond) return 1; } case Compare_kind: { + SET_LOC(c, e); Py_ssize_t i, n = asdl_seq_LEN(e->v.Compare.ops) - 1; if (n > 0) { if (!check_compare(c, e)) { -- cgit v1.2.1