diff options
author | ankitjavalkar | 2016-04-21 17:31:09 +0530 |
---|---|---|
committer | ankitjavalkar | 2016-05-05 19:16:26 +0530 |
commit | 5684b1b19fcb383f494f0bfc04ad1bb760abce74 (patch) | |
tree | 6d40b0cb151b9ab9d40d6c6479617f2eee5ed04b /yaksh/python_stdout_evaluator.py | |
parent | 2c7f278382f4fe8071508b0a880aae34f8edfd5e (diff) | |
download | online_test-5684b1b19fcb383f494f0bfc04ad1bb760abce74.tar.gz online_test-5684b1b19fcb383f494f0bfc04ad1bb760abce74.tar.bz2 online_test-5684b1b19fcb383f494f0bfc04ad1bb760abce74.zip |
Post review improvements:
- compiled_output is set during setup
- python exec context renamed
- _compile_command deprecated
Diffstat (limited to 'yaksh/python_stdout_evaluator.py')
-rw-r--r-- | yaksh/python_stdout_evaluator.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/python_stdout_evaluator.py b/yaksh/python_stdout_evaluator.py index 85efa51..4d89e16 100644 --- a/yaksh/python_stdout_evaluator.py +++ b/yaksh/python_stdout_evaluator.py @@ -31,8 +31,8 @@ class PythonStdoutEvaluator(CodeEvaluator): else: submitted = compile(user_answer, '<string>', mode='exec') with redirect_stdout() as output_buffer: - g = {} - exec submitted in g + exec_scope = {} + exec submitted in exec_scope self.output_value = output_buffer.getvalue() return self.output_value |