Skip to content

Commit 9b66af0

Browse files
Rename to reduce diff
1 parent 4a31149 commit 9b66af0

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tin/apps/submissions/tasks.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,9 @@ def run_submission(submission_id):
101101
python=python_exe,
102102
)
103103

104-
with open(submission_wrapper_path, "w", encoding="utf-8") as f:
105-
f.write(wrapper_text)
104+
with open(submission_wrapper_path, "w", encoding="utf-8") as f_obj:
105+
f_obj.write(wrapper_text)
106+
106107
os.chmod(submission_wrapper_path, 0o700)
107108
except OSError:
108109
submission.grader_output = (
@@ -281,4 +282,4 @@ def run_submission(submission_id):
281282
)
282283

283284
with contextlib.suppress(FileNotFoundError):
284-
os.unlink(submission_wrapper_path)
285+
os.remove(submission_wrapper_path)

0 commit comments

Comments
 (0)