From 6665eb3279b54e42136dd58f9ac58e32d6f12cfe Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 21 Jan 2019 21:04:48 +0200 Subject: [PATCH] bpo-35798: Fix duplicate SyntaxWarning: "is" with a literal. --- Python/compile.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Python/compile.c b/Python/compile.c index 5aebda0da4d140..936926bb09331b 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -2404,11 +2404,11 @@ compiler_jump_if(struct compiler *c, expr_ty e, basicblock *next, int cond) return 1; } case Compare_kind: { - if (!check_compare(c, e)) { - return 0; - } Py_ssize_t i, n = asdl_seq_LEN(e->v.Compare.ops) - 1; if (n > 0) { + if (!check_compare(c, e)) { + return 0; + } basicblock *cleanup = compiler_new_block(c); if (cleanup == NULL) return 0;