From 7944706467199e0554be6aadf63707225df7945a Mon Sep 17 00:00:00 2001 From: Alexandru Mahmoud Date: Tue, 22 Sep 2020 17:04:52 -0400 Subject: [PATCH] filtering.py check_expression adding 'Constant' --- tools/stats/filtering.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/stats/filtering.py b/tools/stats/filtering.py index 17047b6ec6e..9833b293d22 100644 --- a/tools/stats/filtering.py +++ b/tools/stats/filtering.py @@ -12,7 +12,7 @@ AST_NODE_TYPE_WHITELIST = [ 'Expr', 'Load', 'Str', 'Num', 'BoolOp', 'Compare', 'And', 'Eq', 'NotEq', 'Or', 'GtE', 'LtE', 'Lt', 'Gt', 'BinOp', 'Add', 'Div', 'Sub', 'Mult', 'Mod', 'Pow', 'LShift', 'GShift', 'BitAnd', 'BitOr', 'BitXor', 'UnaryOp', 'Invert', - 'Not', 'NotIn', 'In', 'Is', 'IsNot', 'List', 'Index', 'Subscript', + 'Not', 'NotIn', 'In', 'Is', 'IsNot', 'List', 'Index', 'Subscript', 'Constant', # Further checks 'Name', 'Call', 'Attribute', ]