From da860b09c829b804f5efef509882c7b42caa6f2a 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 5d78ce4ab5a..7cde5be0884 100644 --- a/tools/stats/filtering.py +++ b/tools/stats/filtering.py @@ -13,7 +13,7 @@ AST_NODE_TYPE_WHITELIST = [ 'Or', 'GtE', 'LtE', 'Lt', 'Gt', 'BinOp', 'Add', 'Div', 'Sub', 'Mult', 'Mod', 'Pow', 'LShift', 'GShift', 'BitAnd', 'BitOr', 'BitXor', 'UnaryOp', 'Invert', 'Not', 'UAdd', 'USub', 'NotIn', 'In', 'Is', 'IsNot', 'List', 'Index', - 'Subscript', + 'Subscript', 'Constant', # Further checks 'Name', 'Call', 'Attribute', ]