diff --git a/contrib/evlang/evlang.py b/contrib/evlang/evlang.py index e3175250e2..0da2b90e99 100644 --- a/contrib/evlang/evlang.py +++ b/contrib/evlang/evlang.py @@ -480,12 +480,10 @@ def get_node_lineno(node): # Deny evaluation of code if the AST contain any of the following nodes: UNALLOWED_AST_NODES = set([ # 'Add', 'And', - 'AssAttr', # 'AssList', # 'AssName', # 'AssTuple', # 'Assert', 'Assign', 'AugAssign', - 'Backquote', # 'Bitand', 'Bitor', 'Bitxor', 'Break', # 'CallFunc', 'Class', 'Compare', 'Const', 'Continue', # 'Decorators', 'Dict', 'Discard', 'Div', @@ -493,17 +491,17 @@ UNALLOWED_AST_NODES = set([ 'Exec', # 'Expression', 'FloorDiv', # 'For', - 'From', - 'Function', + 'FunctionDef', # 'GenExpr', 'GenExprFor', 'GenExprIf', 'GenExprInner', # 'Getattr', 'Global', 'If', 'Import', + 'ImportFrom', # 'Invert', # 'Keyword', 'Lambda', 'LeftShift', # 'List', 'ListComp', 'ListCompFor', 'ListCompIf', 'Mod', # 'Module', # 'Mul', 'Name', 'Node', 'Not', 'Or', 'Pass', 'Power', - 'Print', 'Printnl', + 'Print', 'Raise', # 'Return', 'RightShift', 'Slice', 'Sliceobj', # 'Stmt', 'Sub', 'Subscript',