We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5377f0a commit 7f2f623Copy full SHA for 7f2f623
1 file changed
builder/utils.py
@@ -21,6 +21,7 @@
21
safe_exec_flags,
22
)
23
from RestrictedPython import compile_restricted
24
+from RestrictedPython import safe_globals as restricted_safe_globals
25
from werkzeug.routing import Rule
26
27
@@ -177,6 +178,7 @@ def get_safer_globals():
177
178
out._iter_unpack_sequence_ = safe_globals["_iter_unpack_sequence_"]
179
180
# add common python builtins
181
+ out.update(restricted_safe_globals)
182
out.update(get_python_builtins())
183
184
return out
0 commit comments