From ab013e3069a51fb6c0e2332b0c51cd6a74493e33 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 5 Aug 2025 11:55:45 -0400 Subject: [PATCH] Use `an` var name in nested subactor debugging ex. --- .../multi_nested_subactors_error_up_through_nurseries.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/debugging/multi_nested_subactors_error_up_through_nurseries.py b/examples/debugging/multi_nested_subactors_error_up_through_nurseries.py index b63f1945..622029a9 100644 --- a/examples/debugging/multi_nested_subactors_error_up_through_nurseries.py +++ b/examples/debugging/multi_nested_subactors_error_up_through_nurseries.py @@ -21,12 +21,12 @@ async def breakpoint_forever(): async def spawn_until(depth=0): """"A nested nursery that triggers another ``NameError``. """ - async with tractor.open_nursery() as n: + async with tractor.open_nursery() as an: if depth < 1: - await n.run_in_actor(breakpoint_forever) + await an.run_in_actor(breakpoint_forever) - p = await n.run_in_actor( + p = await an.run_in_actor( name_error, name='name_error' ) @@ -38,7 +38,7 @@ async def spawn_until(depth=0): # recusrive call to spawn another process branching layer of # the tree depth -= 1 - await n.run_in_actor( + await an.run_in_actor( spawn_until, depth=depth, name=f'spawn_until_{depth}',