Skip to content

Commit 03db5d9

Browse files
Update Lib/asyncio/base_tasks.py
1 parent 91b87b3 commit 03db5d9

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎Lib/asyncio/base_tasks.py‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ def _task_get_stack(task, limit):
4242
elif hasattr(task._coro, 'ag_frame'):
4343
# case 3: async generators
4444
f = task._coro.ag_frame
45-
# gh-161178: async gens should not be missed
4645
elif not task.done() and hasattr(task._coro, 'aga_gen'):
47-
# case 4: pending async generator operations
46+
# case 4: async generator's asend/athrow/aclose
4847
f = task._coro.aga_gen.ag_frame
4948
else:
5049
# case 5: unknown objects

0 commit comments

Comments
 (0)