We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8eaaf16 commit 1236923Copy full SHA for 1236923
Lib/asyncio/tools.py
@@ -27,6 +27,7 @@ def _index(result):
27
for tid, tname, awaited in tasks:
28
id2name[tid] = tname
29
for stack, parent_id in awaited:
30
+ stack = [elem[0] if isinstance(elem, tuple) else elem for elem in stack]
31
awaits.append((parent_id, stack, tid))
32
return id2name, awaits
33
@@ -151,6 +152,7 @@ def build_task_table(result):
151
152
]
153
)
154
for stack, awaiter_id in awaited:
155
156
coroutine_chain = " -> ".join(stack)
157
awaiter_name = id2name.get(awaiter_id, "Unknown")
158
table.append(
0 commit comments