diff --git a/Lib/asyncio/tools.py b/Lib/asyncio/tools.py index 3fc4524c008db6..4a2c126a672c1e 100644 --- a/Lib/asyncio/tools.py +++ b/Lib/asyncio/tools.py @@ -28,7 +28,7 @@ def __init__( # ─── indexing helpers ─────────────────────────────────────────── def _format_stack_entry(elem: tuple[str, str, int] | str) -> str: if isinstance(elem, tuple): - fqname, path, line_no = elem + path, line_no, fqname = elem return f"{fqname} {path}:{line_no}" return elem