Skip to content

Commit 6a2f536

Browse files
committed
[fix] 07
1 parent a1389a2 commit 6a2f536

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

torch/_inductor/codecache.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3597,8 +3597,7 @@ def _worker_task_halide(lockfile: str, jobs: list[partial[Any]]) -> None:
35973597
cmd: list[Any]
35983598
python, script, *cmd = getattr(e, "cmd", ("", "", ""))
35993599
if os.path.basename(python).startswith("python"):
3600-
with open(script) as f:
3601-
code = f.read()
3600+
code = Path(script).read_text()
36023601
main = " hl.main()"
36033602
assert code.count(main) == 1
36043603

0 commit comments

Comments
 (0)