Skip to content

Commit

Permalink
Remove partially supported tempfile.NamedTemporaryFile `delete_on_c…
Browse files Browse the repository at this point in the history
…lose` option.
  • Loading branch information
fabiocaccamo committed May 16, 2024
1 parent c5853f3 commit e98d976
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fsutil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1428,7 +1428,7 @@ def _write_file_atomic(
mode=mode,
dir=dirpath,
delete=True,
delete_on_close=False,
# delete_on_close=False, # supported since Python >= 3.12
encoding=encoding,
) as file:
file.write(content)
Expand Down

0 comments on commit e98d976

Please sign in to comment.