Skip to content

Commit 83f8f76

Browse files
johnslavikthunder-coding
authored andcommitted
pythongh-143952: Fix asyncio tools to work with the new remote debugging API (python#143954)
1 parent b7987f1 commit 83f8f76

3 files changed

Lines changed: 149 additions & 146 deletions

File tree

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)