Skip to content

Commit 63cc125

Browse files
authored
gh-143952: Fix asyncio tools to work with the new remote debugging API (#143954)
1 parent 7ca9e7a commit 63cc125

File tree

3 files changed

+149
-146
lines changed

3 files changed

+149
-146
lines changed

Lib/asyncio/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ def __init__(
2727
# ─── indexing helpers ───────────────────────────────────────────
2828
def _format_stack_entry(elem: str|FrameInfo) -> str:
2929
if not isinstance(elem, str):
30-
if elem.lineno == 0 and elem.filename == "":
30+
if elem.location.lineno == 0 and elem.filename == "":
3131
return f"{elem.funcname}"
3232
else:
33-
return f"{elem.funcname} {elem.filename}:{elem.lineno}"
33+
return f"{elem.funcname} {elem.filename}:{elem.location.lineno}"
3434
return elem
3535

3636

0 commit comments

Comments
 (0)