also allow None Type for safe eval (#58269)

pull/58312/head
markafarrell 5 years ago committed by Brian Coca
parent f749ef5c0a
commit 8555b728c3

@ -50,6 +50,7 @@ def safe_eval(expr, locals=None, include_exceptions=False):
# also add back some builtins we do need # also add back some builtins we do need
'True': True, 'True': True,
'False': False, 'False': False,
'None': None
} }
# this is the whitelist of AST nodes we are going to # this is the whitelist of AST nodes we are going to

Loading…
Cancel
Save