Commit e8da1b8f by Ned Batchelder

Turn off our debugging levers

parent 3316aeb0
...@@ -58,7 +58,8 @@ def safe_exec(code, globals_dict, locals_dict, future_division=False, assumed_im ...@@ -58,7 +58,8 @@ def safe_exec(code, globals_dict, locals_dict, future_division=False, assumed_im
json.dump(l_dict, sys.stdout) json.dump(l_dict, sys.stdout)
""")) """))
if 1: # Turn this on to see what's being executed.
if 0:
print "--{:-<40}".format(" jailed ") print "--{:-<40}".format(" jailed ")
print "".join(the_code) print "".join(the_code)
print "--{:-<40}".format(" exec ") print "--{:-<40}".format(" exec ")
...@@ -112,5 +113,5 @@ def not_safe_exec(code, globals_dict, locals_dict, future_division=False, assume ...@@ -112,5 +113,5 @@ def not_safe_exec(code, globals_dict, locals_dict, future_division=False, assume
# Running Python code in the sandbox makes it difficult to debug. # Running Python code in the sandbox makes it difficult to debug.
# Turn this on to run the code directly. # Turn this on to run the code directly.
if 1: if 0:
safe_exec = not_safe_exec 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