[stable-2.6] also allow None Type for safe eval (#58269)

(cherry picked from commit 8555b72)

Co-authored-by: markafarrell <mark.andrew.farrell@gmail.com>
pull/58440/head
markafarrell 7 years ago committed by Toshio Kuratomi
parent f71a7b9fbd
commit 37284b0581

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

Loading…
Cancel
Save