From a17bda4994a089a4b4d5b2799e2483f5af570a1a Mon Sep 17 00:00:00 2001 From: JasonGrace2282 Date: Sun, 10 Nov 2024 09:32:37 -0500 Subject: [PATCH] Rename to reduce diff --- tin/apps/submissions/tasks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tin/apps/submissions/tasks.py b/tin/apps/submissions/tasks.py index 441b863f..7477fe44 100644 --- a/tin/apps/submissions/tasks.py +++ b/tin/apps/submissions/tasks.py @@ -101,8 +101,8 @@ def run_submission(submission_id): python=python_exe, ) - with open(submission_wrapper_path, "w", encoding="utf-8") as f: - f.write(wrapper_text) + with open(submission_wrapper_path, "w", encoding="utf-8") as f_obj: + f_obj.write(wrapper_text) os.chmod(submission_wrapper_path, 0o700) except OSError: submission.grader_output = ( @@ -281,4 +281,4 @@ def run_submission(submission_id): ) with contextlib.suppress(FileNotFoundError): - os.unlink(submission_wrapper_path) + os.remove(submission_wrapper_path)