There's no self in eval_python's template!

This commit is contained in:
jesopo 2018-10-24 13:50:50 +01:00
parent 7f9399a925
commit 46179d2f38

View file

@ -11,7 +11,7 @@ def fail(s):
try:
compiled = compile(sys.stdin.read(), "code", "single")
except SyntaxError as e:
self.fail(str(e))
fail(str(e))
old_stdout = sys.stdout
stdout = io.StringIO()
@ -20,7 +20,7 @@ sys.stdout = stdout
try:
result = eval(compiled)
except Exception as e:
self.fail(str(e))
fail(str(e))
stdout.write("\\n")
if not result == None: