From: Andrew Svetlov Date: Sun, 20 Feb 2022 10:07:00 +0000 (+0200) Subject: bpo-46752: Uniform TaskGroup.__repr__ (GH-31409) X-Git-Tag: v3.11.0a6~152 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e7130c2e8c6abfaf04b209bd5b239059eda024b9;p=thirdparty%2FPython%2Fcpython.git bpo-46752: Uniform TaskGroup.__repr__ (GH-31409) --- diff --git a/Lib/asyncio/taskgroups.py b/Lib/asyncio/taskgroups.py index 57b0eafefc16..756fc551e013 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: