From cf3e6c1218e7bad98caf18424510407860fea5f2 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 4 Dec 2024 14:01:38 -0500 Subject: [PATCH] Rename `n: trio.Nursery` -> `tn` (task nursery) --- examples/debugging/asyncio_bp.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/debugging/asyncio_bp.py b/examples/debugging/asyncio_bp.py index 161435d..50a0eea 100644 --- a/examples/debugging/asyncio_bp.py +++ b/examples/debugging/asyncio_bp.py @@ -58,7 +58,7 @@ async def trio_ctx( raise_after_bp=not bp_before_started, ) as (first, chan), - trio.open_nursery() as n, + trio.open_nursery() as tn, ): assert first == 'start' @@ -67,7 +67,7 @@ async def trio_ctx( await ctx.started(first) - n.start_soon( + tn.start_soon( to_asyncio.run_task, aio_sleep_forever, ) @@ -83,8 +83,8 @@ async def main( debug_mode=True, maybe_enable_greenback=True, # loglevel='devx', - ) as n: - ptl: Portal = await n.start_actor( + ) as an: + ptl: Portal = await an.start_actor( 'aio_daemon', enable_modules=[__name__], infect_asyncio=True,