Skip to content

Commit 7ea4572

Browse files
committed
Update Trio mode for compatibility with Trio >= 0.18.0
The Trio package renamed their trio.hazmat module to trio.lowlevel.
1 parent dc35b1e commit 7ea4572

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipykernel/trio_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def log_nursery_exc(exc):
3939
exc)
4040

4141
async def trio_main():
42-
self._trio_token = trio.hazmat.current_trio_token()
42+
self._trio_token = trio.lowlevel.current_trio_token()
4343
async with trio.open_nursery() as nursery:
4444
# TODO This hack prevents the nursery from cancelling all child
4545
# tasks when an uncaught exception occurs, but it's ugly.

0 commit comments

Comments
 (0)