Skip to content

Commit d40463f

Browse files
committed
Update asyncio tools to new _remote_debugging.FrameInfo API
1 parent bb25f72 commit d40463f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
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)