Skip to content

Commit

Permalink
fix: 'delete_on_close' is 3.12 only, use 'delete'
Browse files Browse the repository at this point in the history
  • Loading branch information
adigitoleo committed Aug 12, 2024
1 parent 3707ea9 commit dd5b682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pydrex/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
>>> import tempfile
>>> import io
>>> kwargs = { "delete_on_close": False } if sys.platform == "win32" else {}
>>> kwargs = { "delete": False } if sys.platform == "win32" else {}
>>> tmp = tempfile.NamedTemporaryFile(**kwargs)
>>> pydrex_logger.debug("debug message")
>>> with pydrex.io.logfile_enable(io.TextIOWrapper(tmp.file)): # doctest: +ELLIPSIS
Expand Down

0 comments on commit dd5b682

Please sign in to comment.