diff options
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 |