Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Init repr's info as ['']
  • Loading branch information
asvetlov committed Feb 18, 2022
commit eee2cc9b1917210369a1bb8d1e3e047ff5cf6f97
4 changes: 2 additions & 2 deletions Lib/asyncio/taskgroups.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self):
self._on_completed_fut = None

def __repr__(self):
info = []
info = ['']
if self._tasks:
info.append(f'tasks={len(self._tasks)}')
if self._unfinished_tasks:
Expand All @@ -38,7 +38,7 @@ def __repr__(self):
elif self._entered:
info.append('entered')

info_str = ' ' + ' '.join(info)
info_str = ' '.join(info)
return f'<TaskGroup{info_str}>'

async def __aenter__(self):
Expand Down