bpo-47039: Normalize repr() of asyncio future and task objects (GH-31950)

This commit is contained in:
Andrew Svetlov 2022-03-17 03:03:09 +02:00 committed by GitHub
parent a7c5414832
commit 30b5d41fab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 42 additions and 118 deletions

View file

@ -133,8 +133,8 @@ class Task(futures._PyFuture): # Inherit Python Task implementation
__class_getitem__ = classmethod(GenericAlias)
def _repr_info(self):
return base_tasks._task_repr_info(self)
def __repr__(self):
return base_tasks._task_repr(self)
def get_coro(self):
return self._coro