Skip to content

Commit

Permalink
Fix file created by orthoani._utils.temppath not being deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
althonos committed Jun 19, 2020
1 parent a4bdc67 commit 8a55880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orthoani/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def temppath(suffix: str = "") -> Iterator[Path]:
context is exited.
"""
try:
temp = tempfile.NamedTemporaryFile(mode="w", suffix=suffix, delete=False)
temp = tempfile.NamedTemporaryFile(mode="w", suffix=suffix)
yield Path(temp.name)
finally:
temp.close()

0 comments on commit 8a55880

Please sign in to comment.