guydav commited on
Commit
196a166
·
1 Parent(s): 40e65f2

Added a minor exception

Browse files
Files changed (1) hide show
  1. restrictedpython_code_eval.py +1 -1
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):