Commit ab8a3050 by Ned Batchelder

Don't use jailpy if it hasn't been configured.

parent d99eadc0
......@@ -113,6 +113,6 @@ def not_safe_exec(code, globals_dict, locals_dict, future_division=False, assume
locals_dict.update(straw(l_dict))
# Running Python code in the sandbox makes it difficult to debug.
# Turn this on to run the code directly.
if 0:
# Change 0 to 1 to run the code directly.
if 0 or not jailpy.is_configured():
safe_exec = not_safe_exec
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment