Skip to content

Commit 511d9a7

Browse files
authored
Merge pull request #627 from mehaase/master
Update Trio mode for compatibility with Trio >= 0.18.0
2 parents dc35b1e + 7ea4572 commit 511d9a7

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)