diff options
Diffstat (limited to 'Lib/asyncio/tools.py')
-rw-r--r-- | Lib/asyncio/tools.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/asyncio/tools.py b/Lib/asyncio/tools.py index 16440b594ad..6c1f725e777 100644 --- a/Lib/asyncio/tools.py +++ b/Lib/asyncio/tools.py @@ -27,6 +27,7 @@ def _index(result): for tid, tname, awaited in tasks: id2name[tid] = tname for stack, parent_id in awaited: + stack = [elem[0] if isinstance(elem, tuple) else elem for elem in stack] awaits.append((parent_id, stack, tid)) return id2name, awaits @@ -151,6 +152,7 @@ def build_task_table(result): ] ) for stack, awaiter_id in awaited: + stack = [elem[0] if isinstance(elem, tuple) else elem for elem in stack] coroutine_chain = " -> ".join(stack) awaiter_name = id2name.get(awaiter_id, "Unknown") table.append( |