There was an error while loading. Please reload this page.
1 parent e7d36fe commit 2a83cc6Copy full SHA for 2a83cc6
1 file changed
Lib/ast.py
@@ -40,8 +40,8 @@ def literal_eval(node_or_string):
40
"""
41
Safely evaluate an expression node or a string containing a Python
42
expression. The string or node provided may only consist of the following
43
- Python literal structures: strings, numbers, tuples, lists, dicts, booleans,
44
- and None.
+ Python literal structures: strings, bytes, numbers, tuples, lists, dicts,
+ sets, booleans, and None.
45
46
_safe_names = {'None': None, 'True': True, 'False': False}
47
if isinstance(node_or_string, str):
0 commit comments