mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
bpo-35798: Fix duplicate SyntaxWarning: "is" with a literal. (GH-11639)
This commit is contained in:
parent
62e4481238
commit
4583525835
1 changed files with 3 additions and 3 deletions
|
@ -2404,11 +2404,11 @@ compiler_jump_if(struct compiler *c, expr_ty e, basicblock *next, int cond)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
case Compare_kind: {
|
case Compare_kind: {
|
||||||
if (!check_compare(c, e)) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
Py_ssize_t i, n = asdl_seq_LEN(e->v.Compare.ops) - 1;
|
Py_ssize_t i, n = asdl_seq_LEN(e->v.Compare.ops) - 1;
|
||||||
if (n > 0) {
|
if (n > 0) {
|
||||||
|
if (!check_compare(c, e)) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
basicblock *cleanup = compiler_new_block(c);
|
basicblock *cleanup = compiler_new_block(c);
|
||||||
if (cleanup == NULL)
|
if (cleanup == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue