Skip to content

Commit

Permalink
Bump version to 1.5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Feb 1, 2025
1 parent 43178c7 commit db28cb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion blockbuster/blockbuster.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,11 +304,13 @@ def _get_io_wrapped_functions(
stderr = sys.stderr

def file_write_exclude(file: io.IOBase, *_: Any, **__: Any) -> bool:
if file in {stdout, stderr, sys.stdout, sys.stderr} or file.isatty():
return True
try:
file.fileno()
except io.UnsupportedOperation:
return True
return file in {stdout, stderr, sys.stdout, sys.stderr} or file.isatty()
return False

return {
"io.BufferedReader.read": BlockBusterFunction(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "blockbuster"
version = "1.5.12"
version = "1.5.13"
description = "Utility to detect blocking calls in the async event loop"
readme = "README.md"
keywords = ["async", "block", "detect", "event loop", "asyncio"]
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit db28cb4

Please sign in to comment.