summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--yaksh/python_stdio_evaluator.py7
1 files changed, 1 insertions, 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, '<string>', 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