Spaces:
Sleeping
Sleeping
Added a minor exception
Browse files
restrictedpython_code_eval.py
CHANGED
@@ -108,7 +108,7 @@ def limited_range(iFirst, *args):
|
|
108 |
limited_builtins['range'] = limited_range
|
109 |
|
110 |
|
111 |
-
ALLOWED_UNDERSCORE_NAMES = ['__add__']
|
112 |
|
113 |
|
114 |
def safer_getattr_allowing_string_format(object, name, default=None, getattr=getattr):
|
|
|
108 |
limited_builtins['range'] = limited_range
|
109 |
|
110 |
|
111 |
+
ALLOWED_UNDERSCORE_NAMES = ['__add__', '__contains__']
|
112 |
|
113 |
|
114 |
def safer_getattr_allowing_string_format(object, name, default=None, getattr=getattr):
|