Spaces:
Sleeping
Sleeping
More debugging
Browse files
restrictedpython_code_eval.py
CHANGED
|
@@ -104,8 +104,8 @@ def safer_getattr_allowing_string_format(object, name, default=None, getattr=get
|
|
| 104 |
|
| 105 |
format() is considered harmful, so use at own risk:
|
| 106 |
http://lucumr.pocoo.org/2016/12/29/careful-with-str-format/
|
| 107 |
-
|
| 108 |
"""
|
|
|
|
| 109 |
if name.startswith('_') and name not in ALLOWED_UNDERSCORE_NAMES:
|
| 110 |
raise AttributeError(
|
| 111 |
'"{name}" is an invalid attribute name because it '
|
|
|
|
| 104 |
|
| 105 |
format() is considered harmful, so use at own risk:
|
| 106 |
http://lucumr.pocoo.org/2016/12/29/careful-with-str-format/
|
|
|
|
| 107 |
"""
|
| 108 |
+
print('safer_getattr_allowing_string_format', object, name, default, ALLOWED_UNDERSCORE_NAMES)
|
| 109 |
if name.startswith('_') and name not in ALLOWED_UNDERSCORE_NAMES:
|
| 110 |
raise AttributeError(
|
| 111 |
'"{name}" is an invalid attribute name because it '
|