]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Remove misleading comment in the AST optimizer (#29825)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 29 Nov 2021 08:19:59 +0000 (10:19 +0200)
committerGitHub <noreply@github.com>
Mon, 29 Nov 2021 08:19:59 +0000 (11:19 +0300)
Python/ast_opt.c

index 356f60e2d5399291a7dd7bece50c4a1de837d473..5f219c6f4bbf7fd866f27e22454b24350b6186fb 100644 (file)
@@ -618,7 +618,6 @@ fold_compare(expr_ty node, PyArena *arena, _PyASTOptimizeState *state)
 
     ops = node->v.Compare.ops;
     args = node->v.Compare.comparators;
-    /* TODO: optimize cases with literal arguments. */
     /* Change literal list or set in 'in' or 'not in' into
        tuple or frozenset respectively. */
     i = asdl_seq_LEN(ops) - 1;