GH-95921: Fix positions for some chained comparisons (GH-96968)
This commit is contained in:
@@ -2905,6 +2905,7 @@ compiler_jump_if(struct compiler *c, expr_ty e, jump_target_label 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)) {
|
||||
|
||||
Reference in New Issue
Block a user