Skip to content

Commit

Permalink
Fix debugger in Python 3.9 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet authored Jan 13, 2025
1 parent 0304c12 commit 27ec1de
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion blockbuster/blockbuster.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@ def _get_os_wrapped_functions() -> dict[str, BlockBusterFunction]:
"islink",
can_block_functions=[
("coverage/control.py", {"_should_trace"}),
("/pydevd_file_utils.py", {"get_abs_path_real_path_and_base_from_file"}),
],
)

Expand Down Expand Up @@ -339,7 +340,10 @@ def lock_acquire_exclude(
_thread.LockType,
"acquire",
can_block_predicate=lock_acquire_exclude,
can_block_functions=[("threading.py", {"start"})],
can_block_functions=[
("threading.py", {"start"}),
("asyncio/base_events.py", {"shutdown_default_executor"}),
],
),
"threading.Lock.acquire_lock": BlockBusterFunction(
_thread.LockType,
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.8"
version = "1.5.9"
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 27ec1de

Please sign in to comment.