From e46bd90fb2907a7a43786bee95985072e256cd56 Mon Sep 17 00:00:00 2001 From: maheshgudi Date: Thu, 2 Jun 2016 16:30:44 +0530 Subject: removed literal_eval from python_stdio_evaluator --- yaksh/python_stdio_evaluator.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/yaksh/python_stdio_evaluator.py b/yaksh/python_stdio_evaluator.py index 5db80f5..003337d 100644 --- a/yaksh/python_stdio_evaluator.py +++ b/yaksh/python_stdio_evaluator.py @@ -29,12 +29,7 @@ class PythonStdioEvaluator(CodeEvaluator): submitted = compile(user_answer, '', mode='exec') if expected_input: input_buffer = StringIO() - try: - literal_input = literal_eval(expected_input.split("\n")) - except ValueError: - literal_input = expected_input.split("\n") - for inputs in literal_input: - input_buffer.write(str(inputs)+'\n') + input_buffer.write(expected_input) input_buffer.seek(0) sys.stdin = input_buffer -- cgit