Skip to content

Commit

Permalink
Rename to reduce diff
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGrace2282 committed Nov 10, 2024
1 parent 4a31149 commit a17bda4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tin/apps/submissions/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down Expand Up @@ -281,4 +281,4 @@ def run_submission(submission_id):
)

with contextlib.suppress(FileNotFoundError):
os.unlink(submission_wrapper_path)
os.remove(submission_wrapper_path)

0 comments on commit a17bda4

Please sign in to comment.