8000 use IS_NUMERIC_CONST_EXPR · python/cpython@cd6fbd7 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd6fbd7

Browse files
committed
use IS_NUMERIC_CONST_EXPR
1 parent e82841a commit cd6fbd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/ast_opt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -857,7 +857,7 @@ astfold_withitem(withitem_ty node_, PyArena *ctx_, _PyASTOptimizeState *state)
857857
#define IS_MATCH_COMPLEX_BINARY_CONST_EXPR(N) \
858858
( \
859859
(IS_BINARY_ADD_EXPR(N) || IS_BINARY_SUB_EXPR(N)) \
860-
&& (IS_MATCH_NUMERIC_UNARY_CONST_EXPR(BINARY_EXPR_LEFT(N)) || IS_CONST_EXPR(BINARY_EXPR_LEFT(N))) \
860+
&& (IS_MATCH_NUMERIC_UNARY_CONST_EXPR(BINARY_EXPR_LEFT(N)) || IS_NUMERIC_CONST_EXPR(BINARY_EXPR_LEFT(N))) \
861861
&& IS_COMPLEX_CONST_EXPR(BINARY_EXPR_RIGHT(N)) \
862862
)
863863

0 commit comments

Comments
 (0)
0