diff options
author | Brandt Bucher <brandtbucher@microsoft.com> | 2022-09-20 21:56:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 21:56:38 (GMT) |
commit | 0e61d2b557e0e8e2e1d535575cf147be827af54f (patch) | |
tree | a5b632dda2f9c58aee820cccaebc39cccddfb34d /Python | |
parent | 32d80decbf0ab07b8083467c9222dffb7790c08e (diff) | |
download | cpython-0e61d2b557e0e8e2e1d535575cf147be827af54f.zip cpython-0e61d2b557e0e8e2e1d535575cf147be827af54f.tar.gz cpython-0e61d2b557e0e8e2e1d535575cf147be827af54f.tar.bz2 |
[3.11] GH-95921: Fix positions for some chained comparisons (GH-96968) (GH-96973)
(cherry picked from commit dfc73b57247aac575c83055d960c03bdc28b51fd)
Automerge-Triggered-By: GH:brandtbucher
Diffstat (limited to 'Python')
-rw-r--r-- | Python/compile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/compile.c b/Python/compile.c index 32fd58e..f4555b3 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2930,6 +2930,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)) { |