From e7130c2e8c6abfaf04b209bd5b239059eda024b9 Mon Sep 17 00:00:00 2001 From: Andrew Svetlov Date: Sun, 20 Feb 2022 12:07:00 +0200 Subject: bpo-46752: Uniform TaskGroup.__repr__ (GH-31409) --- Lib/asyncio/taskgroups.py | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Lib/asyncio/taskgroups.py b/Lib/asyncio/taskgroups.py index 57b0eaf..756fc55 100644 --- a/Lib/asyncio/taskgroups.py +++ b/Lib/asyncio/taskgroups.py @@ -9,6 +9,7 @@ from . import events from . import exceptions from . import tasks + class TaskGroup: def __init__(self): @@ -25,19 +26,20 @@ class TaskGroup: self._on_completed_fut = None def __repr__(self): - msg = f'' async def __aenter__(self): if self._entered: -- cgit v0.12