Skip to content

Commit 1fc13ae

Browse files
Darshan808minrk
authored andcommitted
Fix warning filter for WindowsSelectorEventLoopPolicy
1 parent 5f3072e commit 1fc13ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_core/utils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def ensure_event_loop(prefer_selector_loop: bool = False) -> asyncio.AbstractEve
188188
with warnings.catch_warnings():
189189
warnings.filterwarnings(
190190
"ignore",
191-
DeprecationWarning,
191+
category=DeprecationWarning,
192192
message=".*WindowsSelectorEventLoopPolicy.*",
193193
)
194194
loop = asyncio.WindowsSelectorEventLoopPolicy().new_event_loop()

0 commit comments

Comments
 (0)