There's no self
in eval_python's template!
This commit is contained in:
parent
7f9399a925
commit
46179d2f38
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue