Add missing ":"s in EVAL_TEMPLATE in modules/eval_python.py
This commit is contained in:
parent
3d34896beb
commit
baa039e86d
1 changed files with 2 additions and 2 deletions
|
@ -13,13 +13,13 @@ sys.stdout = stdout
|
||||||
try:
|
try:
|
||||||
result = eval(compiled)
|
result = eval(compiled)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
old_stdout.write(json.dumps({"success" False, "out": str(e)}))
|
old_stdout.write(json.dumps({"success": False, "out": str(e)}))
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
stdout.write("\n")
|
stdout.write("\n")
|
||||||
if not result == None:
|
if not result == None:
|
||||||
stdout.write(str(result)+"\n")
|
stdout.write(str(result)+"\n")
|
||||||
old_stdout.write(json.dumps({"success" True, "out": stdout.getvalue()}))
|
old_stdout.write(json.dumps({"success": True, "out": stdout.getvalue()}))
|
||||||
"""
|
"""
|
||||||
|
|
||||||
EVAL_URL = "https://tpcg.tutorialspoint.com/tpcg.php"
|
EVAL_URL = "https://tpcg.tutorialspoint.com/tpcg.php"
|
||||||
|
|
Loading…
Reference in a new issue